Class
BrowserService
NotCreatableServiceNotReplicated
Bridges the Roblox client to its native web browser or WebView.
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.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild