Browser
浏览器域定义了用于浏览器管理的方法和事件。
EN
The Browser domain defines methods and events for browser managing.
✅️️ Methods
🔨Browser.addPrivacySandboxCoordinatorKeyConfig
配置用于与可信协调器通信的特定隐私沙箱API的加密密钥。由于此功能仅用于测试自动化,coordinatorOrigin必须是一个.test域名。该来源不得存在任何现有的协调器配置。
EN
Configures encryption keys used with a given privacy sandbox API to talk to a trusted coordinator. Since this is intended for test automation only, coordinatorOrigin must be a .test domain. No existing coordinator configuration for the origin may exist.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| api | ✔️ | PrivacySandboxAPI | |||
| coordinatorOrigin | ✔️ | string | |||
| keyConfig | ✔️ | string | |||
| browserContextId | BrowserContextID | 执行操作的浏览器上下文。省略时,将使用默认浏览器上下文。 | ENBrowserContext to perform the action in. When omitted, default browser context is used. |
🔨Browser.addPrivacySandboxEnrollmentOverride
允许站点使用需要注册的隐私沙箱功能,而无需站点实际完成注册。仅支持页面目标。
EN
Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| url | ✔️ | string |