devtools-protocol 0.0.1518305 → 0.0.1521046

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.
@@ -4341,6 +4341,13 @@
4341
4341
  "description": "Associated style declaration.",
4342
4342
  "$ref": "CSSStyle"
4343
4343
  },
4344
+ {
4345
+ "name": "originTreeScopeNodeId",
4346
+ "description": "The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule.",
4347
+ "experimental": true,
4348
+ "optional": true,
4349
+ "$ref": "DOM.BackendNodeId"
4350
+ },
4344
4351
  {
4345
4352
  "name": "media",
4346
4353
  "description": "Media list array (for rules involving media queries). The array enumerates media queries\nstarting with the innermost one, going outwards.",
@@ -23325,17 +23332,6 @@
23325
23332
  "type": "boolean"
23326
23333
  }
23327
23334
  ]
23328
- },
23329
- {
23330
- "name": "setPrewarmingAllowed",
23331
- "description": "Enable/disable prewarming triggers manually.\n\nThis command manages DSE Prewarming triggers. While a client is connected,\nprewarming triggers are disabled by default. This command can change this\ndefault behavior to allow the triggers, or to disallow them again.\nSee https://chromestatus.com/feature/6266608741908480 for more details on\nthe DSE Prewarming feature.",
23332
- "experimental": true,
23333
- "parameters": [
23334
- {
23335
- "name": "isAllowed",
23336
- "type": "boolean"
23337
- }
23338
- ]
23339
23335
  }
23340
23336
  ],
23341
23337
  "events": [
@@ -26393,7 +26389,8 @@
26393
26389
  "commands": [
26394
26390
  {
26395
26391
  "name": "getStorageKeyForFrame",
26396
- "description": "Returns a storage key given a frame id.",
26392
+ "description": "Returns a storage key given a frame id.\nDeprecated. Please use Storage.getStorageKey instead.",
26393
+ "deprecated": true,
26397
26394
  "parameters": [
26398
26395
  {
26399
26396
  "name": "frameId",
@@ -26407,6 +26404,24 @@
26407
26404
  }
26408
26405
  ]
26409
26406
  },
26407
+ {
26408
+ "name": "getStorageKey",
26409
+ "description": "Returns storage key for the given frame. If no frame ID is provided,\nthe storage key of the target executing this command is returned.",
26410
+ "experimental": true,
26411
+ "parameters": [
26412
+ {
26413
+ "name": "frameId",
26414
+ "optional": true,
26415
+ "$ref": "Page.FrameId"
26416
+ }
26417
+ ],
26418
+ "returns": [
26419
+ {
26420
+ "name": "storageKey",
26421
+ "$ref": "SerializedStorageKey"
26422
+ }
26423
+ ]
26424
+ },
26410
26425
  {
26411
26426
  "name": "clearDataForOrigin",
26412
26427
  "description": "Clears storage for origin.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1518305",
3
+ "version": "0.0.1521046",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -165,6 +165,8 @@ experimental domain CSS
165
165
  StyleSheetOrigin origin
166
166
  # Associated style declaration.
167
167
  CSSStyle style
168
+ # The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule.
169
+ experimental optional DOM.BackendNodeId originTreeScopeNodeId
168
170
  # Media list array (for rules involving media queries). The array enumerates media queries
169
171
  # starting with the innermost one, going outwards.
170
172
  optional array of CSSMedia media
@@ -1768,14 +1768,3 @@ domain Page
1768
1768
  experimental command setPrerenderingAllowed
1769
1769
  parameters
1770
1770
  boolean isAllowed
1771
-
1772
- # Enable/disable prewarming triggers manually.
1773
- #
1774
- # This command manages DSE Prewarming triggers. While a client is connected,
1775
- # prewarming triggers are disabled by default. This command can change this
1776
- # default behavior to allow the triggers, or to disallow them again.
1777
- # See https://chromestatus.com/feature/6266608741908480 for more details on
1778
- # the DSE Prewarming feature.
1779
- experimental command setPrewarmingAllowed
1780
- parameters
1781
- boolean isAllowed
@@ -239,12 +239,21 @@ experimental domain Storage
239
239
  StorageBucketsDurability durability
240
240
 
241
241
  # Returns a storage key given a frame id.
242
- command getStorageKeyForFrame
242
+ # Deprecated. Please use Storage.getStorageKey instead.
243
+ deprecated command getStorageKeyForFrame
243
244
  parameters
244
245
  Page.FrameId frameId
245
246
  returns
246
247
  SerializedStorageKey storageKey
247
248
 
249
+ # Returns storage key for the given frame. If no frame ID is provided,
250
+ # the storage key of the target executing this command is returned.
251
+ experimental command getStorageKey
252
+ parameters
253
+ optional Page.FrameId frameId
254
+ returns
255
+ SerializedStorageKey storageKey
256
+
248
257
  # Clears storage for origin.
249
258
  command clearDataForOrigin
250
259
  parameters
@@ -5176,20 +5176,6 @@ export namespace ProtocolMapping {
5176
5176
  paramsType: [Protocol.Page.SetPrerenderingAllowedRequest];
5177
5177
  returnType: void;
5178
5178
  };
5179
- /**
5180
- * Enable/disable prewarming triggers manually.
5181
- *
5182
- * This command manages DSE Prewarming triggers. While a client is connected,
5183
- * prewarming triggers are disabled by default. This command can change this
5184
- * default behavior to allow the triggers, or to disallow them again.
5185
- * See https://chromestatus.com/feature/6266608741908480 for more details on
5186
- * the DSE Prewarming feature.
5187
- * @experimental
5188
- */
5189
- 'Page.setPrewarmingAllowed': {
5190
- paramsType: [Protocol.Page.SetPrewarmingAllowedRequest];
5191
- returnType: void;
5192
- };
5193
5179
  /**
5194
5180
  * Disable collecting and reporting metrics.
5195
5181
  */
@@ -5326,11 +5312,22 @@ export namespace ProtocolMapping {
5326
5312
  };
5327
5313
  /**
5328
5314
  * Returns a storage key given a frame id.
5315
+ * Deprecated. Please use Storage.getStorageKey instead.
5316
+ * @deprecated
5329
5317
  */
5330
5318
  'Storage.getStorageKeyForFrame': {
5331
5319
  paramsType: [Protocol.Storage.GetStorageKeyForFrameRequest];
5332
5320
  returnType: Protocol.Storage.GetStorageKeyForFrameResponse;
5333
5321
  };
5322
+ /**
5323
+ * Returns storage key for the given frame. If no frame ID is provided,
5324
+ * the storage key of the target executing this command is returned.
5325
+ * @experimental
5326
+ */
5327
+ 'Storage.getStorageKey': {
5328
+ paramsType: [Protocol.Storage.GetStorageKeyRequest?];
5329
+ returnType: Protocol.Storage.GetStorageKeyResponse;
5330
+ };
5334
5331
  /**
5335
5332
  * Clears storage for origin.
5336
5333
  */
@@ -4087,18 +4087,6 @@ export namespace ProtocolProxyApi {
4087
4087
  */
4088
4088
  setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<void>;
4089
4089
 
4090
- /**
4091
- * Enable/disable prewarming triggers manually.
4092
- *
4093
- * This command manages DSE Prewarming triggers. While a client is connected,
4094
- * prewarming triggers are disabled by default. This command can change this
4095
- * default behavior to allow the triggers, or to disallow them again.
4096
- * See https://chromestatus.com/feature/6266608741908480 for more details on
4097
- * the DSE Prewarming feature.
4098
- * @experimental
4099
- */
4100
- setPrewarmingAllowed(params: Protocol.Page.SetPrewarmingAllowedRequest): Promise<void>;
4101
-
4102
4090
  on(event: 'domContentEventFired', listener: (params: Protocol.Page.DomContentEventFiredEvent) => void): void;
4103
4091
 
4104
4092
  /**
@@ -4437,9 +4425,18 @@ export namespace ProtocolProxyApi {
4437
4425
  export interface StorageApi {
4438
4426
  /**
4439
4427
  * Returns a storage key given a frame id.
4428
+ * Deprecated. Please use Storage.getStorageKey instead.
4429
+ * @deprecated
4440
4430
  */
4441
4431
  getStorageKeyForFrame(params: Protocol.Storage.GetStorageKeyForFrameRequest): Promise<Protocol.Storage.GetStorageKeyForFrameResponse>;
4442
4432
 
4433
+ /**
4434
+ * Returns storage key for the given frame. If no frame ID is provided,
4435
+ * the storage key of the target executing this command is returned.
4436
+ * @experimental
4437
+ */
4438
+ getStorageKey(params: Protocol.Storage.GetStorageKeyRequest): Promise<Protocol.Storage.GetStorageKeyResponse>;
4439
+
4443
4440
  /**
4444
4441
  * Clears storage for origin.
4445
4442
  */
@@ -4351,18 +4351,6 @@ export namespace ProtocolTestsProxyApi {
4351
4351
  */
4352
4352
  setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
4353
4353
 
4354
- /**
4355
- * Enable/disable prewarming triggers manually.
4356
- *
4357
- * This command manages DSE Prewarming triggers. While a client is connected,
4358
- * prewarming triggers are disabled by default. This command can change this
4359
- * default behavior to allow the triggers, or to disallow them again.
4360
- * See https://chromestatus.com/feature/6266608741908480 for more details on
4361
- * the DSE Prewarming feature.
4362
- * @experimental
4363
- */
4364
- setPrewarmingAllowed(params: Protocol.Page.SetPrewarmingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
4365
-
4366
4354
  onDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
4367
4355
  offDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
4368
4356
  onceDomContentEventFired(eventMatcher?: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => boolean): Promise<{ params: Protocol.Page.DomContentEventFiredEvent }>;
@@ -4785,9 +4773,18 @@ export namespace ProtocolTestsProxyApi {
4785
4773
  export interface StorageApi {
4786
4774
  /**
4787
4775
  * Returns a storage key given a frame id.
4776
+ * Deprecated. Please use Storage.getStorageKey instead.
4777
+ * @deprecated
4788
4778
  */
4789
4779
  getStorageKeyForFrame(params: Protocol.Storage.GetStorageKeyForFrameRequest): Promise<{id: number, result: Protocol.Storage.GetStorageKeyForFrameResponse, sessionId: string}>;
4790
4780
 
4781
+ /**
4782
+ * Returns storage key for the given frame. If no frame ID is provided,
4783
+ * the storage key of the target executing this command is returned.
4784
+ * @experimental
4785
+ */
4786
+ getStorageKey(params: Protocol.Storage.GetStorageKeyRequest): Promise<{id: number, result: Protocol.Storage.GetStorageKeyResponse, sessionId: string}>;
4787
+
4791
4788
  /**
4792
4789
  * Clears storage for origin.
4793
4790
  */
@@ -5186,6 +5186,11 @@ export namespace Protocol {
5186
5186
  * Associated style declaration.
5187
5187
  */
5188
5188
  style: CSSStyle;
5189
+ /**
5190
+ * The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule.
5191
+ * @experimental
5192
+ */
5193
+ originTreeScopeNodeId?: DOM.BackendNodeId;
5189
5194
  /**
5190
5195
  * Media list array (for rules involving media queries). The array enumerates media queries
5191
5196
  * starting with the innermost one, going outwards.
@@ -17444,10 +17449,6 @@ export namespace Protocol {
17444
17449
  isAllowed: boolean;
17445
17450
  }
17446
17451
 
17447
- export interface SetPrewarmingAllowedRequest {
17448
- isAllowed: boolean;
17449
- }
17450
-
17451
17452
  export interface DomContentEventFiredEvent {
17452
17453
  timestamp: Network.MonotonicTime;
17453
17454
  }
@@ -19251,6 +19252,14 @@ export namespace Protocol {
19251
19252
  storageKey: SerializedStorageKey;
19252
19253
  }
19253
19254
 
19255
+ export interface GetStorageKeyRequest {
19256
+ frameId?: Page.FrameId;
19257
+ }
19258
+
19259
+ export interface GetStorageKeyResponse {
19260
+ storageKey: SerializedStorageKey;
19261
+ }
19262
+
19254
19263
  export interface ClearDataForOriginRequest {
19255
19264
  /**
19256
19265
  * Security origin.