Expand description
The Browser domain defines methods and events for browser managing.
Method names for the Browser domain, for use with
CdpClient::call.
Constants§
- ADD_
PRIVACY_ SANDBOX_ ENROLLMENT_ OVERRIDE - Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
- CANCEL_
DOWNLOAD - Cancel a download if in progress
- CLOSE
- Close browser gracefully.
- CRASH
- Crashes browser on the main thread.
- CRASH_
GPU_ PROCESS - Crashes GPU process.
- EXECUTE_
BROWSER_ COMMAND - Invoke custom browser commands used by telemetry.
- GET_
BROWSER_ COMMAND_ LINE - Returns the command line switches for the browser process if, and only if –enable-automation is on the commandline.
- GET_
HISTOGRAM - Get a Chrome histogram by name.
- GET_
HISTOGRAMS - Get Chrome histograms.
- GET_
VERSION - Returns version information.
- GET_
WINDOW_ BOUNDS - Get position and size of the browser window.
- GET_
WINDOW_ FOR_ TARGET - Get the browser window that contains the devtools target.
- GRANT_
PERMISSIONS - Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
- RESET_
PERMISSIONS - Reset all permission management for all origins.
- SET_
CONTENTS_ SIZE - Set size of the browser contents resizing browser window as necessary.
- SET_
DOCK_ TILE - Set dock tile details, platform-specific.
- SET_
DOWNLOAD_ BEHAVIOR - Set the behavior when downloading a file.
- SET_
PERMISSION - Set permission settings for given embedding and embedded origins.
- SET_
WINDOW_ BOUNDS - Set position and/or size of the browser window.