chrobot/protocol/browser
⚙️ This module was generated from the Chrome DevTools Protocol version 1.3
Browser Domain
The Browser domain defines methods and events for browser managing.
📖 View this domain on the DevTools Protocol API Docs
Types
This type is not part of the protocol spec, it has been generated dynamically
to represent the response to the command get_version
pub type GetVersionResponse {
GetVersionResponse(
protocol_version: String,
product: String,
revision: String,
user_agent: String,
js_version: String,
)
}
Constructors
-
GetVersionResponse( protocol_version: String, product: String, revision: String, user_agent: String, js_version: String, )
Arguments
-
protocol_version
Protocol version.
-
product
Product name.
-
revision
Product revision.
-
user_agent
User-Agent.
-
js_version
V8 version.
-
Functions
pub fn add_privacy_sandbox_enrollment_override(
callback__: fn(String, Option(Json)) -> a,
url url: String,
) -> a
Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
Parameters:
url
Returns:
pub fn get_version(
callback__: fn(String, Option(a)) ->
Result(Dynamic, RequestError),
) -> Result(GetVersionResponse, RequestError)
Returns version information.
protocol_version
: Protocol version.product
: Product name.revision
: Product revision.user_agent
: User-Agent.js_version
: V8 version.
pub fn reset_permissions(
callback__: fn(String, Option(Json)) -> a,
browser_context_id browser_context_id: Option(String),
) -> a
Reset all permission management for all origins.
Parameters:
browser_context_id
: BrowserContext to reset permissions. When omitted, default browser context is used.
Returns: