diff --git a/changelog.md b/changelog.md index ccb108d99f..6dd46325f1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,24 @@ +## Roll protocol to r1423531 — _2025-02-22T04:29:31.000Z_ +###### Diff: [`43b22be...aee9a5d`](https://github.com/ChromeDevTools/devtools-protocol/compare/43b22be...aee9a5d) + +```diff +@@ browser_protocol.pdl:8811 @@ domain Page + + # Enables page domain notifications. + command enable ++ parameters ++ # If true, the `Page.fileChooserOpened` event will be emitted regardless of the state set by ++ # `Page.setInterceptFileChooserDialog` command (default: false). ++ experimental optional boolean enableFileChooserOpenedEvent + + # The manifest of a webapp, see + # https://www.w3.org/TR/appmanifest/#dfn-manifest. +``` + ## Roll protocol to r1422344 — _2025-02-20T04:28:59.000Z_ -###### Diff: [`90fcdd6...8e4453f`](https://github.com/ChromeDevTools/devtools-protocol/compare/90fcdd6...8e4453f) +###### Diff: [`90fcdd6...43b22be`](https://github.com/ChromeDevTools/devtools-protocol/compare/90fcdd6...43b22be) ```diff @@ browser_protocol.pdl:9751 @@ domain Page diff --git a/json/browser_protocol.json b/json/browser_protocol.json index d98715c77e..2ceb79bcc0 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -19228,7 +19228,16 @@ }, { "name": "enable", - "description": "Enables page domain notifications." + "description": "Enables page domain notifications.", + "parameters": [ + { + "name": "enableFileChooserOpenedEvent", + "description": "If true, the `Page.fileChooserOpened` event will be emitted regardless of the state set by\n`Page.setInterceptFileChooserDialog` command (default: false).", + "experimental": true, + "optional": true, + "type": "boolean" + } + ] }, { "name": "getAppManifest", diff --git a/package.json b/package.json index fc8c7d93fb..59ff8784e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1422344", + "version": "0.0.1423531", "description": "The Chrome DevTools Protocol JSON", "repository": "https://github.com/ChromeDevTools/devtools-protocol", "author": "The Chromium Authors", diff --git a/pdl/browser_protocol.pdl b/pdl/browser_protocol.pdl index e29ab008fe..c136994866 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -8811,6 +8811,10 @@ domain Page # Enables page domain notifications. command enable + parameters + # If true, the `Page.fileChooserOpened` event will be emitted regardless of the state set by + # `Page.setInterceptFileChooserDialog` command (default: false). + experimental optional boolean enableFileChooserOpenedEvent # The manifest of a webapp, see # https://www.w3.org/TR/appmanifest/#dfn-manifest. diff --git a/types/protocol-mapping.d.ts b/types/protocol-mapping.d.ts index a7b93ef99a..6208ccb353 100644 --- a/types/protocol-mapping.d.ts +++ b/types/protocol-mapping.d.ts @@ -3889,7 +3889,7 @@ export namespace ProtocolMapping { * Enables page domain notifications. */ 'Page.enable': { - paramsType: []; + paramsType: [Protocol.Page.EnableRequest?]; returnType: void; }; /** diff --git a/types/protocol-proxy-api.d.ts b/types/protocol-proxy-api.d.ts index f9b41a3dd9..0dcc35f7f9 100644 --- a/types/protocol-proxy-api.d.ts +++ b/types/protocol-proxy-api.d.ts @@ -2970,7 +2970,7 @@ export namespace ProtocolProxyApi { /** * Enables page domain notifications. */ - enable(): Promise; + enable(params: Protocol.Page.EnableRequest): Promise; /** * Gets the processed manifest for this current document. diff --git a/types/protocol-tests-proxy-api.d.ts b/types/protocol-tests-proxy-api.d.ts index fed3b63e04..a92a629e25 100644 --- a/types/protocol-tests-proxy-api.d.ts +++ b/types/protocol-tests-proxy-api.d.ts @@ -3182,7 +3182,7 @@ export namespace ProtocolTestsProxyApi { /** * Enables page domain notifications. */ - enable(): Promise<{id: number, result: void, sessionId: string}>; + enable(params: Protocol.Page.EnableRequest): Promise<{id: number, result: void, sessionId: string}>; /** * Gets the processed manifest for this current document. diff --git a/types/protocol.d.ts b/types/protocol.d.ts index 327b7ffb76..2ab12f1f1a 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -14467,6 +14467,14 @@ export namespace Protocol { url: string; } + export interface EnableRequest { + /** + * If true, the `Page.fileChooserOpened` event will be emitted regardless of the state set by + * `Page.setInterceptFileChooserDialog` command (default: false). + */ + enableFileChooserOpenedEvent?: boolean; + } + export interface GetAppManifestRequest { manifestId?: string; }