devtools-protocol 0.0.1557841 → 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.
@@ -3469,7 +3469,9 @@
3469
3469
  "idleDetection",
3470
3470
  "keyboardLock",
3471
3471
  "localFonts",
3472
+ "localNetwork",
3472
3473
  "localNetworkAccess",
3474
+ "loopbackNetwork",
3473
3475
  "midi",
3474
3476
  "midiSysex",
3475
3477
  "nfc",
@@ -17508,13 +17510,32 @@
17508
17510
  },
17509
17511
  {
17510
17512
  "name": "enableDurableMessages",
17511
- "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.",
17512
17514
  "experimental": true,
17513
17515
  "optional": true,
17514
17516
  "type": "boolean"
17515
17517
  }
17516
17518
  ]
17517
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
+ },
17518
17539
  {
17519
17540
  "name": "getAllCookies",
17520
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.",
@@ -28040,6 +28061,13 @@
28040
28061
  "items": {
28041
28062
  "$ref": "Browser.BrowserContextID"
28042
28063
  }
28064
+ },
28065
+ {
28066
+ "name": "defaultBrowserContextId",
28067
+ "description": "The id of the default browser context if available.",
28068
+ "experimental": true,
28069
+ "optional": true,
28070
+ "$ref": "Browser.BrowserContextID"
28043
28071
  }
28044
28072
  ]
28045
28073
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1557841",
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",
@@ -49,7 +49,9 @@ domain Browser
49
49
  idleDetection
50
50
  keyboardLock
51
51
  localFonts
52
+ localNetwork
52
53
  localNetworkAccess
54
+ loopbackNetwork
53
55
  midi
54
56
  midiSysex
55
57
  nfc
@@ -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.
@@ -132,6 +132,8 @@ domain Target
132
132
  returns
133
133
  # An array of browser context ids.
134
134
  array of Browser.BrowserContextID browserContextIds
135
+ # The id of the default browser context if available.
136
+ experimental optional Browser.BrowserContextID defaultBrowserContextId
135
137
 
136
138
  # Creates a new page.
137
139
  command createTarget
@@ -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.
@@ -4559,7 +4559,7 @@ export namespace Protocol {
4559
4559
  /**
4560
4560
  * @experimental
4561
4561
  */
4562
- export type PermissionType = ('ar' | 'audioCapture' | 'automaticFullscreen' | 'backgroundFetch' | 'backgroundSync' | 'cameraPanTiltZoom' | 'capturedSurfaceControl' | 'clipboardReadWrite' | 'clipboardSanitizedWrite' | 'displayCapture' | 'durableStorage' | 'geolocation' | 'handTracking' | 'idleDetection' | 'keyboardLock' | 'localFonts' | 'localNetworkAccess' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'paymentHandler' | 'periodicBackgroundSync' | 'pointerLock' | 'protectedMediaIdentifier' | 'sensors' | 'smartCard' | 'speakerSelection' | 'storageAccess' | 'topLevelStorageAccess' | 'videoCapture' | 'vr' | 'wakeLockScreen' | 'wakeLockSystem' | 'webAppInstallation' | 'webPrinting' | 'windowManagement');
4562
+ export type PermissionType = ('ar' | 'audioCapture' | 'automaticFullscreen' | 'backgroundFetch' | 'backgroundSync' | 'cameraPanTiltZoom' | 'capturedSurfaceControl' | 'clipboardReadWrite' | 'clipboardSanitizedWrite' | 'displayCapture' | 'durableStorage' | 'geolocation' | 'handTracking' | 'idleDetection' | 'keyboardLock' | 'localFonts' | 'localNetwork' | 'localNetworkAccess' | 'loopbackNetwork' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'paymentHandler' | 'periodicBackgroundSync' | 'pointerLock' | 'protectedMediaIdentifier' | 'sensors' | 'smartCard' | 'speakerSelection' | 'storageAccess' | 'topLevelStorageAccess' | 'videoCapture' | 'vr' | 'wakeLockScreen' | 'wakeLockSystem' | 'webAppInstallation' | 'webPrinting' | 'windowManagement');
4563
4563
 
4564
4564
  /**
4565
4565
  * @experimental
@@ -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.
@@ -20244,6 +20257,11 @@ export namespace Protocol {
20244
20257
  * An array of browser context ids.
20245
20258
  */
20246
20259
  browserContextIds: Browser.BrowserContextID[];
20260
+ /**
20261
+ * The id of the default browser context if available.
20262
+ * @experimental
20263
+ */
20264
+ defaultBrowserContextId?: Browser.BrowserContextID;
20247
20265
  }
20248
20266
 
20249
20267
  export interface CreateTargetRequest {