Structs§
- Auto
Close Worker - RAII guard that terminates a Worker when dropped.
- BaoConfig
- BaoRuntime
- BaoServo
Delegate - BaoWeb
View Delegate - BaoWeb
View State - BaoWs
Registry - WS command-face registry: bridges
CdpServersessions to the realbao_cdpcommand dispatch. - Bridge
Channel - Producer half of the bridge command channel.
- Bridge
Receiver - Receiving end of a
BridgeChannel. - Browser
Config - Dedicated
Worker Global Scope State - The DedicatedWorkerGlobalScope state tracked by bao_browser.
- Evaluate
Result - Result of evaluating a script in the Node Realm.
- Page
Config - Page
Handle - Page
Pool - Permission
- Permission
Denied - Permission
Guard - Runtime
Bridge - High-level bridge that owns a
BridgeChanneland provides the public command API for the bao_browser runtime. - Service
Worker Fetch Event - A ServiceWorker fetch interception event observed by the bao layer.
- Service
Worker Global Scope State - A ServiceWorkerGlobalScope state tracked by bao_browser.
- Service
Worker Handle - A Send+Sync handle to a ServiceWorker’s lifecycle state.
- Service
Worker Registration Id - Unique identifier for a ServiceWorker registration, keyed by (script_url, scope).
- Service
Worker Registration Tracking - The state of a ServiceWorker registration as tracked by bao_browser.
- Service
Worker Scope Config - Configuration for initializing a ServiceWorker’s ServiceWorkerGlobalScope with stealth-consistent properties from the registering page.
- Shared
Worker Channel Bridge - Aggregated channel bridge for a SharedWorker across all connected pages.
- Shared
Worker Connect Event - A SharedWorker connect event observed by the bao layer.
- Shared
Worker Global Scope State - The SharedWorkerGlobalScope state tracked by bao_browser.
- Shared
Worker Handle - A Send+Sync handle to a servo SharedWorker’s lifecycle state.
- Shared
Worker Id - Unique identifier for a SharedWorker, keyed by (script_url, name).
- Shared
Worker Port Channel - A per-page MessagePort channel for a SharedWorker.
- Shared
Worker Port Endpoints - Worker-thread endpoints for a SharedWorker port channel.
- Shared
Worker Port Ref - Per-page reference to a SharedWorker’s MessagePort.
- Shared
Worker Scope Config - Configuration for initializing a SharedWorker’s SharedWorkerGlobalScope with stealth-consistent properties from the first connecting page.
- Structured
Clone Payload - A structured-clone serialized payload for Worker postMessage.
- Worker
Channel Bridge - Bidirectional channel bridge for a single Worker’s postMessage channel.
- Worker
Channel Endpoints - Channel endpoints sent to the Worker thread.
- Worker
Error Event - A Worker error event observed by the bao layer.
- Worker
Global Scope State - The base Worker global scope state tracked by bao_browser.
- Worker
Handle - A Send+Sync handle to a servo Worker’s lifecycle state.
- Worker
Id - Unique identifier for a Worker within a page’s scope. @trace REQ-BRW-004 [entity:Worker]
- Worker
Location - Represents the Worker’s location object (self.location).
- Worker
Message Event - A Worker postMessage event observed by the bao layer.
- Worker
Navigator - Represents the Worker’s navigator object (self.navigator).
- Worker
Network Information - Network information for WorkerNavigator.connection.
- Worker
Scope Config - Configuration for initializing a Worker’s DedicatedWorkerGlobalScope with stealth-consistent properties from the parent page.
- Worker
Script Load Result - Result of loading a Worker script.
- Worker
Script Loader - Worker script loader — handles URL-based script fetching for Workers.
- Worker
Structured Message - A structured-clone message crossing the page↔worker boundary.
- Worker
Teardown Result - Result of a crash-safe Worker teardown operation.
Enums§
- Bridge
Command - Commands sent through the runtime bridge for execution in a page context.
- Bridge
Response - Response returned after executing a
BridgeCommand. - Browser
Error - Page
State - Screenshot
Format - Service
Worker Fetch Intercept Mode - The fetch interception mode for a ServiceWorker.
- Service
Worker Registration State - Lifecycle state of a ServiceWorker registration.
- Worker
Lifecycle State - The lifecycle state of a Worker, tracked for CDP observability and crash-safe teardown verification.
- Worker
Message Direction - Direction of a Worker postMessage event.
- Worker
Script Load Error - Error from loading a Worker script.
- Worker
Script Load State - Used for CDP observability and lifecycle management. The Worker script loading process has these states:
- Worker
Script Source - Source of a Worker script — either inline (data:/blob:/string) or URL-based.
- Worker
Script Type - Script type for Worker compilation.
- Worker
Teardown Path - Which teardown path triggered the Worker’s termination.
Functions§
- crash_
safe_ teardown_ worker - Perform crash-safe teardown for a single Worker.
- encode_
image - handle_
bridge_ command - Process a single bridge command by dispatching to the appropriate page in the pool.
- is_
javascript_ mime_ type - Check if a MIME type is a valid JavaScript MIME type for Worker scripts.
- register_
worker_ scope_ callback_ native - Register a servo-native Worker scope callback via the vendor patch
servo::register_worker_scope_callback(DEC-WK-001 / TASK-1). - run_
browser
Type Aliases§
- Worker
Scope Init Fn - Type alias for the Worker scope initialization callback.