devtools-protocol 0.0.1558402 → 0.0.1560991

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.
@@ -15273,6 +15273,19 @@
15273
15273
  "VeryHigh"
15274
15274
  ]
15275
15275
  },
15276
+ {
15277
+ "id": "RenderBlockingBehavior",
15278
+ "description": "The render blocking behavior of a resource request.",
15279
+ "experimental": true,
15280
+ "type": "string",
15281
+ "enum": [
15282
+ "Blocking",
15283
+ "InBodyParserBlocking",
15284
+ "NonBlocking",
15285
+ "NonBlockingDynamic",
15286
+ "PotentiallyBlocking"
15287
+ ]
15288
+ },
15276
15289
  {
15277
15290
  "id": "PostDataEntry",
15278
15291
  "description": "Post data entry for HTTP request",
@@ -17510,13 +17523,32 @@
17510
17523
  },
17511
17524
  {
17512
17525
  "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.",
17526
+ "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
17527
  "experimental": true,
17515
17528
  "optional": true,
17516
17529
  "type": "boolean"
17517
17530
  }
17518
17531
  ]
17519
17532
  },
17533
+ {
17534
+ "name": "configureDurableMessages",
17535
+ "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.",
17536
+ "experimental": true,
17537
+ "parameters": [
17538
+ {
17539
+ "name": "maxTotalBufferSize",
17540
+ "description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc).",
17541
+ "optional": true,
17542
+ "type": "integer"
17543
+ },
17544
+ {
17545
+ "name": "maxResourceBufferSize",
17546
+ "description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).",
17547
+ "optional": true,
17548
+ "type": "integer"
17549
+ }
17550
+ ]
17551
+ },
17520
17552
  {
17521
17553
  "name": "getAllCookies",
17522
17554
  "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie\ninformation in the `cookies` field.\nDeprecated. Use Storage.getCookies instead.",
@@ -18329,6 +18361,13 @@
18329
18361
  "description": "Whether the request is initiated by a user gesture. Defaults to false.",
18330
18362
  "optional": true,
18331
18363
  "type": "boolean"
18364
+ },
18365
+ {
18366
+ "name": "renderBlockingBehavior",
18367
+ "description": "The render blocking behavior of the request.",
18368
+ "experimental": true,
18369
+ "optional": true,
18370
+ "$ref": "RenderBlockingBehavior"
18332
18371
  }
18333
18372
  ]
18334
18373
  },
@@ -20672,7 +20711,9 @@
20672
20711
  "language-detector",
20673
20712
  "language-model",
20674
20713
  "local-fonts",
20714
+ "local-network",
20675
20715
  "local-network-access",
20716
+ "loopback-network",
20676
20717
  "magnetometer",
20677
20718
  "manual-text",
20678
20719
  "media-playback-while-not-visible",
@@ -28686,6 +28727,18 @@
28686
28727
  }
28687
28728
  ]
28688
28729
  },
28730
+ {
28731
+ "name": "getTrackEventDescriptor",
28732
+ "description": "Return a descriptor for all available tracing categories.",
28733
+ "experimental": true,
28734
+ "returns": [
28735
+ {
28736
+ "name": "descriptor",
28737
+ "description": "Base64-encoded serialized perfetto.protos.TrackEventDescriptor protobuf message. (Encoded as a base64 string when passed over JSON)",
28738
+ "type": "string"
28739
+ }
28740
+ ]
28741
+ },
28689
28742
  {
28690
28743
  "name": "recordClockSyncMarker",
28691
28744
  "description": "Record a clock sync marker in the trace.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1558402",
3
+ "version": "0.0.1560991",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -166,6 +166,15 @@ domain Network
166
166
  High
167
167
  VeryHigh
168
168
 
169
+ # The render blocking behavior of a resource request.
170
+ experimental type RenderBlockingBehavior extends string
171
+ enum
172
+ Blocking
173
+ InBodyParserBlocking
174
+ NonBlocking
175
+ NonBlockingDynamic
176
+ PotentiallyBlocking
177
+
169
178
  # Post data entry for HTTP request
170
179
  type PostDataEntry extends object
171
180
  properties
@@ -1145,9 +1154,21 @@ domain Network
1145
1154
  experimental optional boolean reportDirectSocketTraffic
1146
1155
  # Enable storing response bodies outside of renderer, so that these survive
1147
1156
  # a cross-process navigation. Requires maxTotalBufferSize to be set.
1148
- # Currently defaults to false.
1157
+ # Currently defaults to false. This field is being deprecated in favor of the dedicated
1158
+ # configureDurableMessages command, due to the possibility of deadlocks when awaiting
1159
+ # Network.enable before issuing Runtime.runIfWaitingForDebugger.
1149
1160
  experimental optional boolean enableDurableMessages
1150
1161
 
1162
+ # Configures storing response bodies outside of renderer, so that these survive
1163
+ # a cross-process navigation.
1164
+ # If maxTotalBufferSize is not set, durable messages are disabled.
1165
+ experimental command configureDurableMessages
1166
+ parameters
1167
+ # Buffer size in bytes to use when preserving network payloads (XHRs, etc).
1168
+ optional integer maxTotalBufferSize
1169
+ # Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
1170
+ optional integer maxResourceBufferSize
1171
+
1151
1172
  # Returns all browser cookies. Depending on the backend support, will return detailed cookie
1152
1173
  # information in the `cookies` field.
1153
1174
  # Deprecated. Use Storage.getCookies instead.
@@ -1486,6 +1507,8 @@ domain Network
1486
1507
  optional Page.FrameId frameId
1487
1508
  # Whether the request is initiated by a user gesture. Defaults to false.
1488
1509
  optional boolean hasUserGesture
1510
+ # The render blocking behavior of the request.
1511
+ experimental optional RenderBlockingBehavior renderBlockingBehavior
1489
1512
 
1490
1513
  # Fired when resource loading priority is changed
1491
1514
  experimental event resourceChangedPriority
@@ -164,7 +164,9 @@ domain Page
164
164
  language-detector
165
165
  language-model
166
166
  local-fonts
167
+ local-network
167
168
  local-network-access
169
+ loopback-network
168
170
  magnetometer
169
171
  manual-text
170
172
  media-playback-while-not-visible
@@ -78,6 +78,12 @@ domain Tracing
78
78
  # A list of supported tracing categories.
79
79
  array of string categories
80
80
 
81
+ # Return a descriptor for all available tracing categories.
82
+ experimental command getTrackEventDescriptor
83
+ returns
84
+ # Base64-encoded serialized perfetto.protos.TrackEventDescriptor protobuf message.
85
+ binary descriptor
86
+
81
87
  # Record a clock sync marker in the trace.
82
88
  experimental command recordClockSyncMarker
83
89
  parameters
@@ -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.
@@ -5813,6 +5823,14 @@ export namespace ProtocolMapping {
5813
5823
  paramsType: [];
5814
5824
  returnType: Protocol.Tracing.GetCategoriesResponse;
5815
5825
  };
5826
+ /**
5827
+ * Return a descriptor for all available tracing categories.
5828
+ * @experimental
5829
+ */
5830
+ 'Tracing.getTrackEventDescriptor': {
5831
+ paramsType: [];
5832
+ returnType: Protocol.Tracing.GetTrackEventDescriptorResponse;
5833
+ };
5816
5834
  /**
5817
5835
  * Record a clock sync marker in the trace.
5818
5836
  * @experimental
@@ -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.
@@ -4933,6 +4941,12 @@ export namespace ProtocolProxyApi {
4933
4941
  */
4934
4942
  getCategories(): Promise<Protocol.Tracing.GetCategoriesResponse>;
4935
4943
 
4944
+ /**
4945
+ * Return a descriptor for all available tracing categories.
4946
+ * @experimental
4947
+ */
4948
+ getTrackEventDescriptor(): Promise<Protocol.Tracing.GetTrackEventDescriptorResponse>;
4949
+
4936
4950
  /**
4937
4951
  * Record a clock sync marker in the trace.
4938
4952
  * @experimental
@@ -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.
@@ -5327,6 +5335,12 @@ export namespace ProtocolTestsProxyApi {
5327
5335
  */
5328
5336
  getCategories(): Promise<{id: number, result: Protocol.Tracing.GetCategoriesResponse, sessionId: string}>;
5329
5337
 
5338
+ /**
5339
+ * Return a descriptor for all available tracing categories.
5340
+ * @experimental
5341
+ */
5342
+ getTrackEventDescriptor(): Promise<{id: number, result: Protocol.Tracing.GetTrackEventDescriptorResponse, sessionId: string}>;
5343
+
5330
5344
  /**
5331
5345
  * Record a clock sync marker in the trace.
5332
5346
  * @experimental
@@ -12268,6 +12268,12 @@ export namespace Protocol {
12268
12268
  */
12269
12269
  export type ResourcePriority = ('VeryLow' | 'Low' | 'Medium' | 'High' | 'VeryHigh');
12270
12270
 
12271
+ /**
12272
+ * The render blocking behavior of a resource request.
12273
+ * @experimental
12274
+ */
12275
+ export type RenderBlockingBehavior = ('Blocking' | 'InBodyParserBlocking' | 'NonBlocking' | 'NonBlockingDynamic' | 'PotentiallyBlocking');
12276
+
12271
12277
  /**
12272
12278
  * Post data entry for HTTP request
12273
12279
  */
@@ -13763,12 +13769,25 @@ export namespace Protocol {
13763
13769
  /**
13764
13770
  * Enable storing response bodies outside of renderer, so that these survive
13765
13771
  * a cross-process navigation. Requires maxTotalBufferSize to be set.
13766
- * Currently defaults to false.
13772
+ * Currently defaults to false. This field is being deprecated in favor of the dedicated
13773
+ * configureDurableMessages command, due to the possibility of deadlocks when awaiting
13774
+ * Network.enable before issuing Runtime.runIfWaitingForDebugger.
13767
13775
  * @experimental
13768
13776
  */
13769
13777
  enableDurableMessages?: boolean;
13770
13778
  }
13771
13779
 
13780
+ export interface ConfigureDurableMessagesRequest {
13781
+ /**
13782
+ * Buffer size in bytes to use when preserving network payloads (XHRs, etc).
13783
+ */
13784
+ maxTotalBufferSize?: integer;
13785
+ /**
13786
+ * Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
13787
+ */
13788
+ maxResourceBufferSize?: integer;
13789
+ }
13790
+
13772
13791
  export interface GetAllCookiesResponse {
13773
13792
  /**
13774
13793
  * Array of cookie objects.
@@ -14345,6 +14364,11 @@ export namespace Protocol {
14345
14364
  * Whether the request is initiated by a user gesture. Defaults to false.
14346
14365
  */
14347
14366
  hasUserGesture?: boolean;
14367
+ /**
14368
+ * The render blocking behavior of the request.
14369
+ * @experimental
14370
+ */
14371
+ renderBlockingBehavior?: RenderBlockingBehavior;
14348
14372
  }
14349
14373
 
14350
14374
  /**
@@ -15879,7 +15903,7 @@ export namespace Protocol {
15879
15903
  * in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
15880
15904
  * @experimental
15881
15905
  */
15882
- export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'attribution-reporting' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'direct-sockets-private' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'fenced-unpartitioned-storage-read' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network-access' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'record-ad-auction-events' | 'rewriter' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
15906
+ export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'attribution-reporting' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'direct-sockets-private' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'fenced-unpartitioned-storage-read' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'record-ad-auction-events' | 'rewriter' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
15883
15907
 
15884
15908
  /**
15885
15909
  * Reason for a permissions policy feature to be disabled.
@@ -20688,6 +20712,13 @@ export namespace Protocol {
20688
20712
  categories: string[];
20689
20713
  }
20690
20714
 
20715
+ export interface GetTrackEventDescriptorResponse {
20716
+ /**
20717
+ * Base64-encoded serialized perfetto.protos.TrackEventDescriptor protobuf message. (Encoded as a base64 string when passed over JSON)
20718
+ */
20719
+ descriptor: string;
20720
+ }
20721
+
20691
20722
  export interface RecordClockSyncMarkerRequest {
20692
20723
  /**
20693
20724
  * The ID of this clock sync marker