diff --git a/changelog.md b/changelog.md index b97730a5d4..bf2dac01ec 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,32 @@ +## Roll protocol to r1234845 — _2023-12-08T04:27:01.000Z_ +###### Diff: [`8db4cb9...8a25193`](https://github.com/ChromeDevTools/devtools-protocol/compare/`8db4cb9...8a25193`) + +```diff +@@ browser_protocol.pdl:6465 @@ domain Network + integer dataLength + # Actual bytes received (might be less than dataLength for compressed encodings). + integer encodedDataLength +- # Data that was received. +- experimental optional binary data +- +- # Enables streaming of the response for the given requestId. +- # If enabled, the dataReceived event contains the data that was received during streaming. +- experimental command streamResourceContent +- parameters +- # Identifier of the request to stream. +- RequestId requestId +- returns +- # Data that has been buffered until streaming is enabled. +- binary bufferedData + + # Fired when EventSource message is received. + event eventSourceMessageReceived +``` + ## Roll protocol to r1233758 — _2023-12-06T04:27:12.000Z_ -###### Diff: [`accc8b6...6125f6f`](https://github.com/ChromeDevTools/devtools-protocol/compare/`accc8b6...6125f6f`) +###### Diff: [`accc8b6...8db4cb9`](https://github.com/ChromeDevTools/devtools-protocol/compare/`accc8b6...8db4cb9`) ```diff @@ browser_protocol.pdl:11577 @@ experimental domain Preload @@ -11039,18 +11064,4 @@ index bd277eb..09c420e 100644 # A cookie which was not stored from a response with the corresponding reason. experimental type BlockedSetCookieWithReason extends object -``` - -## Roll protocol to r923255 — _2021-09-21T06:15:25.000Z_ -###### Diff: [`f62186c...384a24c`](https://github.com/ChromeDevTools/devtools-protocol/compare/`f62186c...384a24c`) - -```diff -@@ browser_protocol.pdl:7937 @@ domain Page - ContentWebBluetooth - ContentWebUSB - ContentMediaSession -- ContentMediaSessionService - EmbedderPopupBlockerTabHelper - EmbedderSafeBrowsingTriggeredPopupBlocker - EmbedderSafeBrowsingThreatDetails ``` \ No newline at end of file diff --git a/json/browser_protocol.json b/json/browser_protocol.json index 9309859eb3..00e7149afc 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -14120,6 +14120,25 @@ } ] }, + { + "name": "streamResourceContent", + "description": "Enables streaming of the response for the given requestId.\nIf enabled, the dataReceived event contains the data that was received during streaming.", + "experimental": true, + "parameters": [ + { + "name": "requestId", + "description": "Identifier of the request to stream.", + "$ref": "RequestId" + } + ], + "returns": [ + { + "name": "bufferedData", + "description": "Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON)", + "type": "string" + } + ] + }, { "name": "getSecurityIsolationStatus", "description": "Returns information about the COEP/COOP isolation status.", @@ -14205,6 +14224,13 @@ "name": "encodedDataLength", "description": "Actual bytes received (might be less than dataLength for compressed encodings).", "type": "integer" + }, + { + "name": "data", + "description": "Data that was received. (Encoded as a base64 string when passed over JSON)", + "experimental": true, + "optional": true, + "type": "string" } ] }, diff --git a/package.json b/package.json index 5590f36c53..1c359071a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1233758", + "version": "0.0.1234845", "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 38ecea1cb4..d77476837c 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -6465,6 +6465,18 @@ domain Network integer dataLength # Actual bytes received (might be less than dataLength for compressed encodings). integer encodedDataLength + # Data that was received. + experimental optional binary data + + # Enables streaming of the response for the given requestId. + # If enabled, the dataReceived event contains the data that was received during streaming. + experimental command streamResourceContent + parameters + # Identifier of the request to stream. + RequestId requestId + returns + # Data that has been buffered until streaming is enabled. + binary bufferedData # Fired when EventSource message is received. event eventSourceMessageReceived diff --git a/types/protocol-mapping.d.ts b/types/protocol-mapping.d.ts index 7309dc41dd..c884022ee2 100644 --- a/types/protocol-mapping.d.ts +++ b/types/protocol-mapping.d.ts @@ -3352,6 +3352,14 @@ export namespace ProtocolMapping { paramsType: [Protocol.Network.SetUserAgentOverrideRequest]; returnType: void; }; + /** + * Enables streaming of the response for the given requestId. + * If enabled, the dataReceived event contains the data that was received during streaming. + */ + 'Network.streamResourceContent': { + paramsType: [Protocol.Network.StreamResourceContentRequest]; + returnType: Protocol.Network.StreamResourceContentResponse; + }; /** * Returns information about the COEP/COOP isolation status. */ diff --git a/types/protocol-proxy-api.d.ts b/types/protocol-proxy-api.d.ts index 795c19e2c6..a9e25ea9b3 100644 --- a/types/protocol-proxy-api.d.ts +++ b/types/protocol-proxy-api.d.ts @@ -2399,6 +2399,12 @@ export namespace ProtocolProxyApi { */ setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest): Promise; + /** + * Enables streaming of the response for the given requestId. + * If enabled, the dataReceived event contains the data that was received during streaming. + */ + streamResourceContent(params: Protocol.Network.StreamResourceContentRequest): Promise; + /** * Returns information about the COEP/COOP isolation status. */ diff --git a/types/protocol.d.ts b/types/protocol.d.ts index eec511702b..1bafb7bc78 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -11395,6 +11395,20 @@ export namespace Protocol { userAgentMetadata?: Emulation.UserAgentMetadata; } + export interface StreamResourceContentRequest { + /** + * Identifier of the request to stream. + */ + requestId: RequestId; + } + + export interface StreamResourceContentResponse { + /** + * Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON) + */ + bufferedData: string; + } + export interface GetSecurityIsolationStatusRequest { /** * If no frameId is provided, the status of the target is provided. @@ -11453,6 +11467,10 @@ export namespace Protocol { * Actual bytes received (might be less than dataLength for compressed encodings). */ encodedDataLength: integer; + /** + * Data that was received. (Encoded as a base64 string when passed over JSON) + */ + data?: string; } /**