Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
//! Registry-backed Window realms and Window-owned asynchronous work.
//!
//! The submodules keep realm authority, operation targets, and settings separate:
//!
//! - `registry` is the authority for realm ownership and access policy;
//! - `binding` is a stable ScriptState-like reference to one registered realm;
//! - `operation_receiver` freezes and authorizes a Window receiver before
//! WebIDL conversion can run author code;
//! - `fetch` couples that realm to the LocalWindow whose request lifetime it
//! follows.
//! - `settings` keeps a realm's associated Document available to pure APIs
//! after its execution authority has retired.
//!
//! In particular, a binding is never rewritten to point at another Window.
mod binding;
mod fetch;
mod operation_receiver;
mod registry;
mod settings;
pub(crate) use binding::WindowExecutionContextBinding;
pub(crate) use fetch::{DetachedWindowFetchContext, WindowFetchContext, WindowTaskTarget};
pub(crate) use operation_receiver::{WindowOperationReceiver, WindowOperationReceiverCaptureError};
pub(crate) use registry::{
WindowExecutionContextAccessPolicy, WindowExecutionContextIdentity, WindowExecutionContextOwner,
};
pub(super) use registry::{
WindowExecutionContextRealmRecords, WindowExecutionContextRealmRegistration,
WindowExecutionContextScopedRealmRegistration,
};
pub(crate) use settings::WindowEnvironmentSettings;