devtools-protocol 0.0.1558402 → 0.0.1559729

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17510,13 +17510,32 @@
17510
17510
  },
17511
17511
  {
17512
17512
  "name": "enableDurableMessages",
17513
- "description": "Enable storing response bodies outside of renderer, so that these survive\na cross-process navigation. Requires maxTotalBufferSize to be set.\nCurrently defaults to false.",
17513
+ "description": "Enable storing response bodies outside of renderer, so that these survive\na cross-process navigation. Requires maxTotalBufferSize to be set.\nCurrently defaults to false. This field is being deprecated in favor of the dedicated\nconfigureDurableMessages command, due to the possibility of deadlocks when awaiting\nNetwork.enable before issuing Runtime.runIfWaitingForDebugger.",
17514
17514
  "experimental": true,
17515
17515
  "optional": true,
17516
17516
  "type": "boolean"
17517
17517
  }
17518
17518
  ]
17519
17519
  },
17520
+ {
17521
+ "name": "configureDurableMessages",
17522
+ "description": "Configures storing response bodies outside of renderer, so that these survive\na cross-process navigation.\nIf maxTotalBufferSize is not set, durable messages are disabled.",
17523
+ "experimental": true,
17524
+ "parameters": [
17525
+ {
17526
+ "name": "maxTotalBufferSize",
17527
+ "description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc).",
17528
+ "optional": true,
17529
+ "type": "integer"
17530
+ },
17531
+ {
17532
+ "name": "maxResourceBufferSize",
17533
+ "description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).",
17534
+ "optional": true,
17535
+ "type": "integer"
17536
+ }
17537
+ ]
17538
+ },
17520
17539
  {
17521
17540
  "name": "getAllCookies",
17522
17541
  "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie\ninformation in the `cookies` field.\nDeprecated. Use Storage.getCookies instead.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1558402",
3
+ "version": "0.0.1559729",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1145,9 +1145,21 @@ domain Network
1145
1145
  experimental optional boolean reportDirectSocketTraffic
1146
1146
  # Enable storing response bodies outside of renderer, so that these survive
1147
1147
  # a cross-process navigation. Requires maxTotalBufferSize to be set.
1148
- # Currently defaults to false.
1148
+ # Currently defaults to false. This field is being deprecated in favor of the dedicated
1149
+ # configureDurableMessages command, due to the possibility of deadlocks when awaiting
1150
+ # Network.enable before issuing Runtime.runIfWaitingForDebugger.
1149
1151
  experimental optional boolean enableDurableMessages
1150
1152
 
1153
+ # Configures storing response bodies outside of renderer, so that these survive
1154
+ # a cross-process navigation.
1155
+ # If maxTotalBufferSize is not set, durable messages are disabled.
1156
+ experimental command configureDurableMessages
1157
+ parameters
1158
+ # Buffer size in bytes to use when preserving network payloads (XHRs, etc).
1159
+ optional integer maxTotalBufferSize
1160
+ # Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
1161
+ optional integer maxResourceBufferSize
1162
+
1151
1163
  # Returns all browser cookies. Depending on the backend support, will return detailed cookie
1152
1164
  # information in the `cookies` field.
1153
1165
  # Deprecated. Use Storage.getCookies instead.
@@ -4178,6 +4178,16 @@ export namespace ProtocolMapping {
4178
4178
  paramsType: [Protocol.Network.EnableRequest?];
4179
4179
  returnType: void;
4180
4180
  };
4181
+ /**
4182
+ * Configures storing response bodies outside of renderer, so that these survive
4183
+ * a cross-process navigation.
4184
+ * If maxTotalBufferSize is not set, durable messages are disabled.
4185
+ * @experimental
4186
+ */
4187
+ 'Network.configureDurableMessages': {
4188
+ paramsType: [Protocol.Network.ConfigureDurableMessagesRequest?];
4189
+ returnType: void;
4190
+ };
4181
4191
  /**
4182
4192
  * Returns all browser cookies. Depending on the backend support, will return detailed cookie
4183
4193
  * information in the `cookies` field.
@@ -3056,6 +3056,14 @@ export namespace ProtocolProxyApi {
3056
3056
  */
3057
3057
  enable(params: Protocol.Network.EnableRequest): Promise<void>;
3058
3058
 
3059
+ /**
3060
+ * Configures storing response bodies outside of renderer, so that these survive
3061
+ * a cross-process navigation.
3062
+ * If maxTotalBufferSize is not set, durable messages are disabled.
3063
+ * @experimental
3064
+ */
3065
+ configureDurableMessages(params: Protocol.Network.ConfigureDurableMessagesRequest): Promise<void>;
3066
+
3059
3067
  /**
3060
3068
  * Returns all browser cookies. Depending on the backend support, will return detailed cookie
3061
3069
  * information in the `cookies` field.
@@ -3228,6 +3228,14 @@ export namespace ProtocolTestsProxyApi {
3228
3228
  */
3229
3229
  enable(params: Protocol.Network.EnableRequest): Promise<{id: number, result: void, sessionId: string}>;
3230
3230
 
3231
+ /**
3232
+ * Configures storing response bodies outside of renderer, so that these survive
3233
+ * a cross-process navigation.
3234
+ * If maxTotalBufferSize is not set, durable messages are disabled.
3235
+ * @experimental
3236
+ */
3237
+ configureDurableMessages(params: Protocol.Network.ConfigureDurableMessagesRequest): Promise<{id: number, result: void, sessionId: string}>;
3238
+
3231
3239
  /**
3232
3240
  * Returns all browser cookies. Depending on the backend support, will return detailed cookie
3233
3241
  * information in the `cookies` field.
@@ -13763,12 +13763,25 @@ export namespace Protocol {
13763
13763
  /**
13764
13764
  * Enable storing response bodies outside of renderer, so that these survive
13765
13765
  * a cross-process navigation. Requires maxTotalBufferSize to be set.
13766
- * Currently defaults to false.
13766
+ * Currently defaults to false. This field is being deprecated in favor of the dedicated
13767
+ * configureDurableMessages command, due to the possibility of deadlocks when awaiting
13768
+ * Network.enable before issuing Runtime.runIfWaitingForDebugger.
13767
13769
  * @experimental
13768
13770
  */
13769
13771
  enableDurableMessages?: boolean;
13770
13772
  }
13771
13773
 
13774
+ export interface ConfigureDurableMessagesRequest {
13775
+ /**
13776
+ * Buffer size in bytes to use when preserving network payloads (XHRs, etc).
13777
+ */
13778
+ maxTotalBufferSize?: integer;
13779
+ /**
13780
+ * Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
13781
+ */
13782
+ maxResourceBufferSize?: integer;
13783
+ }
13784
+
13772
13785
  export interface GetAllCookiesResponse {
13773
13786
  /**
13774
13787
  * Array of cookie objects.