Expand description
The Browser domain defines methods and events for browser managing.
Types, command parameters and event payloads for the Browser
domain. The method-name constants for the same domain are in
crate::methods.
Structs§
- AddMock
Camera Params - Adds or updates a mock camera in the shared video capture device list for test automation. The mock camera is not scoped to a particular page or frame and is removed when the DevTools session that created it disconnects.
- AddPrivacy
Sandbox Enrollment Override Params - Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
- Bounds
- Browser window bounds information
- Bucket
- Chrome histogram bucket.
- Cancel
Download Params - Cancel a download if in progress
- Close
Params - Close browser gracefully.
- Crash
GpuProcess Params - Crashes GPU process.
- Crash
Params - Crashes browser on the main thread.
- Download
Progress Event - Fired when download makes progress. Last call has |done| == true.
- Download
Will Begin Event - Fired when page is about to start a download.
- Execute
Browser Command Params - Invoke custom browser commands used by telemetry.
- GetBrowser
Command Line Params - Returns the command line switches for the browser process if, and only if –enable-automation is on the commandline.
- GetBrowser
Command Line Returns - What
Browser.getBrowserCommandLineanswers with. - GetGlobal
Privacy Control Params - Gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#get-global-privacy-control
- GetGlobal
Privacy Control Returns - What
Browser.getGlobalPrivacyControlanswers with. - GetHistogram
Params - Get a Chrome histogram by name.
- GetHistogram
Returns - What
Browser.getHistogramanswers with. - GetHistograms
Params - Get Chrome histograms.
- GetHistograms
Returns - What
Browser.getHistogramsanswers with. - GetVersion
Params - Returns version information.
- GetVersion
Returns - What
Browser.getVersionanswers with. - GetWindow
Bounds Params - Get position and size of the browser window.
- GetWindow
Bounds Returns - What
Browser.getWindowBoundsanswers with. - GetWindow
ForTarget Params - Get the browser window that contains the devtools target.
- GetWindow
ForTarget Returns - What
Browser.getWindowForTargetanswers with. - Grant
Permissions Params - Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
- Histogram
- Chrome histogram.
- Permission
Descriptor - Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dom-permissiondescriptor.
- Reset
Permissions Params - Reset all permission management for all origins.
- SetContents
Size Params - Set size of the browser contents resizing browser window as necessary.
- SetDock
Tile Params - Set dock tile details, platform-specific.
- SetDownload
Behavior Params - Set the behavior when downloading a file.
- SetGlobal
Privacy Control Params - Sets and then gets the current globally-applied privacy control status See https://www.w3.org/TR/gpc/#set-global-privacy-control
- SetGlobal
Privacy Control Returns - What
Browser.setGlobalPrivacyControlanswers with. - SetPermission
Params - Set permission settings for given embedding and embedded origins.
- SetWindow
Bounds Params - Set position and/or size of the browser window.
Enums§
- Browser
Command Id - Browser command ids used by executeBrowserCommand.
- Download
Progress State - The values
stateaccepts ondownloadProgress. - Permission
Setting - Experimental: may change without notice.
- Permission
Type - Experimental: may change without notice.
- SetDownload
Behavior Behavior - The values
behavioraccepts onsetDownloadBehavior. - Window
State - The state of the browser window.
Type Aliases§
- Browser
Context Id - Experimental: may change without notice.
- Window
Id - Experimental: may change without notice.