devtools-protocol 0.0.1519099 → 0.0.1523305

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.",
@@ -26382,10 +26389,29 @@
26382
26389
  "commands": [
26383
26390
  {
26384
26391
  "name": "getStorageKeyForFrame",
26385
- "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,
26394
+ "parameters": [
26395
+ {
26396
+ "name": "frameId",
26397
+ "$ref": "Page.FrameId"
26398
+ }
26399
+ ],
26400
+ "returns": [
26401
+ {
26402
+ "name": "storageKey",
26403
+ "$ref": "SerializedStorageKey"
26404
+ }
26405
+ ]
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,
26386
26411
  "parameters": [
26387
26412
  {
26388
26413
  "name": "frameId",
26414
+ "optional": true,
26389
26415
  "$ref": "Page.FrameId"
26390
26416
  }
26391
26417
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1519099",
3
+ "version": "0.0.1523305",
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
@@ -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
@@ -5312,11 +5312,22 @@ export namespace ProtocolMapping {
5312
5312
  };
5313
5313
  /**
5314
5314
  * Returns a storage key given a frame id.
5315
+ * Deprecated. Please use Storage.getStorageKey instead.
5316
+ * @deprecated
5315
5317
  */
5316
5318
  'Storage.getStorageKeyForFrame': {
5317
5319
  paramsType: [Protocol.Storage.GetStorageKeyForFrameRequest];
5318
5320
  returnType: Protocol.Storage.GetStorageKeyForFrameResponse;
5319
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
+ };
5320
5331
  /**
5321
5332
  * Clears storage for origin.
5322
5333
  */
@@ -4425,9 +4425,18 @@ export namespace ProtocolProxyApi {
4425
4425
  export interface StorageApi {
4426
4426
  /**
4427
4427
  * Returns a storage key given a frame id.
4428
+ * Deprecated. Please use Storage.getStorageKey instead.
4429
+ * @deprecated
4428
4430
  */
4429
4431
  getStorageKeyForFrame(params: Protocol.Storage.GetStorageKeyForFrameRequest): Promise<Protocol.Storage.GetStorageKeyForFrameResponse>;
4430
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
+
4431
4440
  /**
4432
4441
  * Clears storage for origin.
4433
4442
  */
@@ -4773,9 +4773,18 @@ export namespace ProtocolTestsProxyApi {
4773
4773
  export interface StorageApi {
4774
4774
  /**
4775
4775
  * Returns a storage key given a frame id.
4776
+ * Deprecated. Please use Storage.getStorageKey instead.
4777
+ * @deprecated
4776
4778
  */
4777
4779
  getStorageKeyForFrame(params: Protocol.Storage.GetStorageKeyForFrameRequest): Promise<{id: number, result: Protocol.Storage.GetStorageKeyForFrameResponse, sessionId: string}>;
4778
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
+
4779
4788
  /**
4780
4789
  * Clears storage for origin.
4781
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.
@@ -19247,6 +19252,14 @@ export namespace Protocol {
19247
19252
  storageKey: SerializedStorageKey;
19248
19253
  }
19249
19254
 
19255
+ export interface GetStorageKeyRequest {
19256
+ frameId?: Page.FrameId;
19257
+ }
19258
+
19259
+ export interface GetStorageKeyResponse {
19260
+ storageKey: SerializedStorageKey;
19261
+ }
19262
+
19250
19263
  export interface ClearDataForOriginRequest {
19251
19264
  /**
19252
19265
  * Security origin.