Skip to content

BrowserService

Not yet Class Services NotCreatable NotReplicated Service

Bridges the Roblox client to its native web browser or WebView.

Not implemented yet

This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.

0 Nova members · 19 modern Roblox members not implemented yet

Description

This service is reserved for Roblox's own code and isn't accessible from experience scripts.

BrowserService bridges the Roblox client to its native web browser or embedded WebView. It opens browser windows and native overlays, runs JavaScript inside the resulting WebView, and relays messages to and from the web-side hybrid bridge (window.Roblox.Hybrid).

OpenBrowserWindow opens a URL only if it is allowlisted (a Roblox site, a youtube.com/watch page, or a stripe.com or vnggames.com subdomain); otherwise the request is rejected. OpenNativeOverlay opens a native overlay for Roblox URLs only. SendCommand forwards a JSON command to the WebView, ExecuteJavaScript evaluates a script inside it, and CloseBrowserWindow closes it. OpenWeChatAuthWindow launches the Tencent (WeChat) authentication flow, while ReturnToJavaScript and EmitHybridEvent invoke callbacks and dispatch events on the web-side hybrid bridge. Signals such as BrowserWindowClosed, BrowserWindowWillNavigate, JavaScriptCallback, and AuthCookieCopiedToEngine report WebView activity back to the client.

Inheritance

Object → Instance → BrowserService

Methods

Member Signature Summary
CloseBrowserWindow BrowserService:CloseBrowserWindow(): null —
CopyAuthCookieFromBrowserToEngine BrowserService:CopyAuthCookieFromBrowserToEngine(): null —
EmitHybridEvent BrowserService:EmitHybridEvent(moduleName: string, eventName: string, params: string): null —
ExecuteJavaScript BrowserService:ExecuteJavaScript(javascript: string): null —
OpenBrowserWindow BrowserService:OpenBrowserWindow(url: string): null —
OpenNativeOverlay BrowserService:OpenNativeOverlay(title: string, url: string): null —
OpenWeChatAuthWindow BrowserService:OpenWeChatAuthWindow(): null —
ReturnToJavaScript BrowserService:ReturnToJavaScript(callbackId: string, success: bool, params: string): null —
SendCommand BrowserService:SendCommand(command: string): null —

Events

Member Signature Summary
AuthCookieCopiedToEngine AuthCookieCopiedToEngine() —
BrowserWindowClosed BrowserWindowClosed() —
BrowserWindowWillNavigate BrowserWindowWillNavigate(url: string) —
JavaScriptCallback JavaScriptCallback(content: string) —

Roblox reference: BrowserService

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.