devtools-protocol 0.0.795133 → 0.0.799653

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.
package/changelog.md CHANGED
@@ -1,5 +1,37 @@
1
1
 
2
2
 
3
+ ## Roll protocol to r799090
4
+ ###### _2020-08-18 07:16:17_ | Diff: [3c9bb33...0e651b0](https://github.com/ChromeDevTools/devtools-protocol/compare/3c9bb33...0e651b0)
5
+ #### `Network`: new command
6
+ * [`Network.getSecurityIsolationStatus`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-getSecurityIsolationStatus)
7
+ #### `Network`: new types
8
+ * [`Network.CrossOriginOpenerPolicyValue`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CrossOriginOpenerPolicyValue)
9
+ * [`Network.CrossOriginOpenerPolicyStatus`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CrossOriginOpenerPolicyStatus)
10
+ * [`Network.CrossOriginEmbedderPolicyValue`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CrossOriginEmbedderPolicyValue)
11
+ * [`Network.CrossOriginEmbedderPolicyStatus`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-CrossOriginEmbedderPolicyStatus)
12
+ * [`Network.SecurityIsolationStatus`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-SecurityIsolationStatus)
13
+
14
+
15
+ ## Roll protocol to r796752
16
+ ###### _2020-08-11 02:16:15_ | Diff: [6b171b5...3c9bb33](https://github.com/ChromeDevTools/devtools-protocol/compare/6b171b5...3c9bb33)
17
+ #### `DOM`: new command
18
+ * [`DOM.getNodesForSubtreeByStyle`](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-getNodesForSubtreeByStyle)
19
+ #### `DOM`: new type
20
+ * [`DOM.CSSComputedStyleProperty`](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#type-CSSComputedStyleProperty)
21
+
22
+
23
+ ## Roll protocol to r795450
24
+ ###### _2020-08-06 07:16:06_ | Diff: [c89b1a6...6b171b5](https://github.com/ChromeDevTools/devtools-protocol/compare/c89b1a6...6b171b5)
25
+ #### `Audits`: modified type
26
+ * [`Audits.ContentSecurityPolicyIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-ContentSecurityPolicyIssueDetails) - The `violatingNodeId` in the properties had `type` _removed_. The properties's `$ref` _added_.
27
+
28
+
29
+ ## Roll protocol to r795133
30
+ ###### _2020-08-05 12:16:31_ | Diff: [40517aa...c89b1a6](https://github.com/ChromeDevTools/devtools-protocol/compare/40517aa...c89b1a6)
31
+ #### `DOM`: modified command
32
+ * [`DOM.getFlattenedDocument`](https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-getFlattenedDocument) - `description` updated. `deprecated` added.
33
+
34
+
3
35
  ## Roll protocol to r795004
4
36
  ###### _2020-08-05 07:16:20_ | Diff: [9f93887...40517aa](https://github.com/ChromeDevTools/devtools-protocol/compare/9f93887...40517aa)
5
37
  #### `Target`: modified type
@@ -1261,7 +1261,7 @@
1261
1261
  {
1262
1262
  "name": "violatingNodeId",
1263
1263
  "optional": true,
1264
- "type": "integer"
1264
+ "$ref": "DOM.BackendNodeId"
1265
1265
  }
1266
1266
  ]
1267
1267
  },
@@ -4043,6 +4043,22 @@
4043
4043
  "type": "number"
4044
4044
  }
4045
4045
  ]
4046
+ },
4047
+ {
4048
+ "id": "CSSComputedStyleProperty",
4049
+ "type": "object",
4050
+ "properties": [
4051
+ {
4052
+ "name": "name",
4053
+ "description": "Computed style property name.",
4054
+ "type": "string"
4055
+ },
4056
+ {
4057
+ "name": "value",
4058
+ "description": "Computed style property value.",
4059
+ "type": "string"
4060
+ }
4061
+ ]
4046
4062
  }
4047
4063
  ],
4048
4064
  "commands": [
@@ -4357,6 +4373,42 @@
4357
4373
  }
4358
4374
  ]
4359
4375
  },
4376
+ {
4377
+ "name": "getNodesForSubtreeByStyle",
4378
+ "description": "Finds nodes with a given computed style in a subtree.",
4379
+ "experimental": true,
4380
+ "parameters": [
4381
+ {
4382
+ "name": "nodeId",
4383
+ "description": "Node ID pointing to the root of a subtree.",
4384
+ "$ref": "NodeId"
4385
+ },
4386
+ {
4387
+ "name": "computedStyles",
4388
+ "description": "The style to filter nodes by (includes nodes if any of properties matches).",
4389
+ "type": "array",
4390
+ "items": {
4391
+ "$ref": "CSSComputedStyleProperty"
4392
+ }
4393
+ },
4394
+ {
4395
+ "name": "pierce",
4396
+ "description": "Whether or not iframes and shadow roots in the same target should be traversed when returning the\nresults (default is false).",
4397
+ "optional": true,
4398
+ "type": "boolean"
4399
+ }
4400
+ ],
4401
+ "returns": [
4402
+ {
4403
+ "name": "nodeIds",
4404
+ "description": "Resulting nodes.",
4405
+ "type": "array",
4406
+ "items": {
4407
+ "$ref": "NodeId"
4408
+ }
4409
+ }
4410
+ ]
4411
+ },
4360
4412
  {
4361
4413
  "name": "getNodeForLocation",
4362
4414
  "description": "Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is\neither returned or not.",
@@ -10378,6 +10430,63 @@
10378
10430
  }
10379
10431
  }
10380
10432
  ]
10433
+ },
10434
+ {
10435
+ "id": "CrossOriginOpenerPolicyValue",
10436
+ "experimental": true,
10437
+ "type": "string",
10438
+ "enum": [
10439
+ "SameOrigin",
10440
+ "SameOriginAllowPopups",
10441
+ "UnsafeNone",
10442
+ "SameOriginPlusCoep"
10443
+ ]
10444
+ },
10445
+ {
10446
+ "id": "CrossOriginOpenerPolicyStatus",
10447
+ "experimental": true,
10448
+ "type": "object",
10449
+ "properties": [
10450
+ {
10451
+ "name": "value",
10452
+ "$ref": "CrossOriginOpenerPolicyValue"
10453
+ }
10454
+ ]
10455
+ },
10456
+ {
10457
+ "id": "CrossOriginEmbedderPolicyValue",
10458
+ "experimental": true,
10459
+ "type": "string",
10460
+ "enum": [
10461
+ "None",
10462
+ "RequireCorp"
10463
+ ]
10464
+ },
10465
+ {
10466
+ "id": "CrossOriginEmbedderPolicyStatus",
10467
+ "experimental": true,
10468
+ "type": "object",
10469
+ "properties": [
10470
+ {
10471
+ "name": "value",
10472
+ "$ref": "CrossOriginEmbedderPolicyValue"
10473
+ }
10474
+ ]
10475
+ },
10476
+ {
10477
+ "id": "SecurityIsolationStatus",
10478
+ "experimental": true,
10479
+ "type": "object",
10480
+ "properties": [
10481
+ {
10482
+ "name": "coop",
10483
+ "$ref": "CrossOriginOpenerPolicyStatus"
10484
+ },
10485
+ {
10486
+ "name": "coep",
10487
+ "$ref": "CrossOriginEmbedderPolicyStatus"
10488
+ }
10489
+ ]
10381
10490
  }
10382
10491
  ],
10383
10492
  "commands": [
@@ -10961,6 +11070,25 @@
10961
11070
  "$ref": "Emulation.UserAgentMetadata"
10962
11071
  }
10963
11072
  ]
11073
+ },
11074
+ {
11075
+ "name": "getSecurityIsolationStatus",
11076
+ "description": "Returns information about the COEP/COOP isolation status.",
11077
+ "experimental": true,
11078
+ "parameters": [
11079
+ {
11080
+ "name": "frameId",
11081
+ "description": "If no frameId is provided, the status of the target is provided.",
11082
+ "optional": true,
11083
+ "$ref": "Page.FrameId"
11084
+ }
11085
+ ],
11086
+ "returns": [
11087
+ {
11088
+ "name": "status",
11089
+ "$ref": "SecurityIsolationStatus"
11090
+ }
11091
+ ]
10964
11092
  }
10965
11093
  ],
10966
11094
  "events": [
@@ -12278,6 +12406,29 @@
12278
12406
  "root"
12279
12407
  ]
12280
12408
  },
12409
+ {
12410
+ "id": "SecureContextType",
12411
+ "description": "Indicates whether the frame is a secure context and why it is the case.",
12412
+ "experimental": true,
12413
+ "type": "string",
12414
+ "enum": [
12415
+ "Secure",
12416
+ "SecureLocalhost",
12417
+ "InsecureScheme",
12418
+ "InsecureAncestor"
12419
+ ]
12420
+ },
12421
+ {
12422
+ "id": "CrossOriginIsolatedContextType",
12423
+ "description": "Indicates whether the frame is cross-origin isolated and why it is the case.",
12424
+ "experimental": true,
12425
+ "type": "string",
12426
+ "enum": [
12427
+ "Isolated",
12428
+ "NotIsolated",
12429
+ "NotIsolatedFeatureDisabled"
12430
+ ]
12431
+ },
12281
12432
  {
12282
12433
  "id": "Frame",
12283
12434
  "description": "Information about the Frame on the page.",
@@ -12346,6 +12497,18 @@
12346
12497
  "experimental": true,
12347
12498
  "optional": true,
12348
12499
  "$ref": "AdFrameType"
12500
+ },
12501
+ {
12502
+ "name": "secureContextType",
12503
+ "description": "Indicates whether the main document is a secure context and explains why that is the case.",
12504
+ "experimental": true,
12505
+ "$ref": "SecureContextType"
12506
+ },
12507
+ {
12508
+ "name": "crossOriginIsolatedContextType",
12509
+ "description": "Indicates whether this is a cross origin isolated context.",
12510
+ "experimental": true,
12511
+ "$ref": "CrossOriginIsolatedContextType"
12349
12512
  }
12350
12513
  ]
12351
12514
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.795133",
3
+ "version": "0.0.799653",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -623,7 +623,7 @@ experimental domain Audits
623
623
  ContentSecurityPolicyViolationType contentSecurityPolicyViolationType
624
624
  optional AffectedFrame frameAncestor
625
625
  optional SourceCodeLocation sourceCodeLocation
626
- optional integer violatingNodeId
626
+ optional DOM.BackendNodeId violatingNodeId
627
627
 
628
628
  # A unique identifier for the type of issue. Each type may use one of the
629
629
  # optional fields in InspectorIssueDetails to convey more specific
@@ -1888,6 +1888,13 @@ domain DOM
1888
1888
  # Rectangle height
1889
1889
  number height
1890
1890
 
1891
+ type CSSComputedStyleProperty extends object
1892
+ properties
1893
+ # Computed style property name.
1894
+ string name
1895
+ # Computed style property value.
1896
+ string value
1897
+
1891
1898
  # Collects class names for the node with given id and all of it's child nodes.
1892
1899
  experimental command collectClassNamesFromSubtree
1893
1900
  parameters
@@ -2034,6 +2041,20 @@ domain DOM
2034
2041
  # Resulting node.
2035
2042
  array of Node nodes
2036
2043
 
2044
+ # Finds nodes with a given computed style in a subtree.
2045
+ experimental command getNodesForSubtreeByStyle
2046
+ parameters
2047
+ # Node ID pointing to the root of a subtree.
2048
+ NodeId nodeId
2049
+ # The style to filter nodes by (includes nodes if any of properties matches).
2050
+ array of CSSComputedStyleProperty computedStyles
2051
+ # Whether or not iframes and shadow roots in the same target should be traversed when returning the
2052
+ # results (default is false).
2053
+ optional boolean pierce
2054
+ returns
2055
+ # Resulting nodes.
2056
+ array of NodeId nodeIds
2057
+
2037
2058
  # Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
2038
2059
  # either returned or not.
2039
2060
  command getNodeForLocation
@@ -5312,6 +5333,39 @@ domain Network
5312
5333
  # available, such as in the case of HTTP/2 or QUIC.
5313
5334
  optional string headersText
5314
5335
 
5336
+ experimental type CrossOriginOpenerPolicyValue extends string
5337
+ enum
5338
+ SameOrigin
5339
+ SameOriginAllowPopups
5340
+ UnsafeNone
5341
+ SameOriginPlusCoep
5342
+
5343
+ experimental type CrossOriginOpenerPolicyStatus extends object
5344
+ properties
5345
+ CrossOriginOpenerPolicyValue value
5346
+
5347
+ experimental type CrossOriginEmbedderPolicyValue extends string
5348
+ enum
5349
+ None
5350
+ RequireCorp
5351
+
5352
+ experimental type CrossOriginEmbedderPolicyStatus extends object
5353
+ properties
5354
+ CrossOriginEmbedderPolicyValue value
5355
+
5356
+ experimental type SecurityIsolationStatus extends object
5357
+ properties
5358
+ CrossOriginOpenerPolicyStatus coop
5359
+ CrossOriginEmbedderPolicyStatus coep
5360
+
5361
+ # Returns information about the COEP/COOP isolation status.
5362
+ experimental command getSecurityIsolationStatus
5363
+ parameters
5364
+ # If no frameId is provided, the status of the target is provided.
5365
+ optional Page.FrameId frameId
5366
+ returns
5367
+ SecurityIsolationStatus status
5368
+
5315
5369
  # This domain provides various functionality related to drawing atop the inspected page.
5316
5370
  experimental domain Overlay
5317
5371
  depends on DOM
@@ -5658,6 +5712,28 @@ domain Page
5658
5712
  # This frame is the root of an ad frame.
5659
5713
  root
5660
5714
 
5715
+ # Indicates whether the frame is a secure context and why it is the case.
5716
+ experimental type SecureContextType extends string
5717
+ enum
5718
+ # The origin is a secure context.
5719
+ Secure
5720
+ # The host is localhost and hence is considered secure.
5721
+ SecureLocalhost
5722
+ # The origin has an insecure scheme and is not localhost.
5723
+ InsecureScheme
5724
+ # One of the ancestor frames is not a secure context.
5725
+ InsecureAncestor
5726
+
5727
+ # Indicates whether the frame is cross-origin isolated and why it is the case.
5728
+ experimental type CrossOriginIsolatedContextType extends string
5729
+ enum
5730
+ # The origin is cross-origin isolated.
5731
+ Isolated
5732
+ # The origin is not cross-origin isolated.
5733
+ NotIsolated
5734
+ # The cross-origin isolation feature is disabled.
5735
+ NotIsolatedFeatureDisabled
5736
+
5661
5737
  # Information about the Frame on the page.
5662
5738
  type Frame extends object
5663
5739
  properties
@@ -5686,6 +5762,10 @@ domain Page
5686
5762
  experimental optional string unreachableUrl
5687
5763
  # Indicates whether this frame was tagged as an ad.
5688
5764
  experimental optional AdFrameType adFrameType
5765
+ # Indicates whether the main document is a secure context and explains why that is the case.
5766
+ experimental SecureContextType secureContextType
5767
+ # Indicates whether this is a cross origin isolated context.
5768
+ experimental CrossOriginIsolatedContextType crossOriginIsolatedContextType
5689
5769
 
5690
5770
  # Information about the Resource on the page.
5691
5771
  experimental type FrameResource extends object
@@ -1817,6 +1817,13 @@ export namespace ProtocolMapping {
1817
1817
  paramsType: [Protocol.DOM.GetFlattenedDocumentRequest?];
1818
1818
  returnType: Protocol.DOM.GetFlattenedDocumentResponse;
1819
1819
  };
1820
+ /**
1821
+ * Finds nodes with a given computed style in a subtree.
1822
+ */
1823
+ 'DOM.getNodesForSubtreeByStyle': {
1824
+ paramsType: [Protocol.DOM.GetNodesForSubtreeByStyleRequest];
1825
+ returnType: Protocol.DOM.GetNodesForSubtreeByStyleResponse;
1826
+ };
1820
1827
  /**
1821
1828
  * Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
1822
1829
  * either returned or not.
@@ -2944,6 +2951,13 @@ export namespace ProtocolMapping {
2944
2951
  paramsType: [Protocol.Network.SetUserAgentOverrideRequest];
2945
2952
  returnType: void;
2946
2953
  };
2954
+ /**
2955
+ * Returns information about the COEP/COOP isolation status.
2956
+ */
2957
+ 'Network.getSecurityIsolationStatus': {
2958
+ paramsType: [Protocol.Network.GetSecurityIsolationStatusRequest?];
2959
+ returnType: Protocol.Network.GetSecurityIsolationStatusResponse;
2960
+ };
2947
2961
  /**
2948
2962
  * Disables domain notifications.
2949
2963
  */
@@ -1191,6 +1191,11 @@ export namespace ProtocolProxyApi {
1191
1191
  */
1192
1192
  getFlattenedDocument(params: Protocol.DOM.GetFlattenedDocumentRequest): Promise<Protocol.DOM.GetFlattenedDocumentResponse>;
1193
1193
 
1194
+ /**
1195
+ * Finds nodes with a given computed style in a subtree.
1196
+ */
1197
+ getNodesForSubtreeByStyle(params: Protocol.DOM.GetNodesForSubtreeByStyleRequest): Promise<Protocol.DOM.GetNodesForSubtreeByStyleResponse>;
1198
+
1194
1199
  /**
1195
1200
  * Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
1196
1201
  * either returned or not.
@@ -2160,6 +2165,11 @@ export namespace ProtocolProxyApi {
2160
2165
  */
2161
2166
  setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest): Promise<void>;
2162
2167
 
2168
+ /**
2169
+ * Returns information about the COEP/COOP isolation status.
2170
+ */
2171
+ getSecurityIsolationStatus(params: Protocol.Network.GetSecurityIsolationStatusRequest): Promise<Protocol.Network.GetSecurityIsolationStatusResponse>;
2172
+
2163
2173
  /**
2164
2174
  * Fired when data chunk was received over the network.
2165
2175
  */
@@ -3165,7 +3165,7 @@ export namespace Protocol {
3165
3165
  contentSecurityPolicyViolationType: ContentSecurityPolicyViolationType;
3166
3166
  frameAncestor?: AffectedFrame;
3167
3167
  sourceCodeLocation?: SourceCodeLocation;
3168
- violatingNodeId?: integer;
3168
+ violatingNodeId?: DOM.BackendNodeId;
3169
3169
  }
3170
3170
 
3171
3171
  /**
@@ -4970,6 +4970,17 @@ export namespace Protocol {
4970
4970
  height: number;
4971
4971
  }
4972
4972
 
4973
+ export interface CSSComputedStyleProperty {
4974
+ /**
4975
+ * Computed style property name.
4976
+ */
4977
+ name: string;
4978
+ /**
4979
+ * Computed style property value.
4980
+ */
4981
+ value: string;
4982
+ }
4983
+
4973
4984
  export interface CollectClassNamesFromSubtreeRequest {
4974
4985
  /**
4975
4986
  * Id of the node to collect class names.
@@ -5179,6 +5190,29 @@ export namespace Protocol {
5179
5190
  nodes: Node[];
5180
5191
  }
5181
5192
 
5193
+ export interface GetNodesForSubtreeByStyleRequest {
5194
+ /**
5195
+ * Node ID pointing to the root of a subtree.
5196
+ */
5197
+ nodeId: NodeId;
5198
+ /**
5199
+ * The style to filter nodes by (includes nodes if any of properties matches).
5200
+ */
5201
+ computedStyles: CSSComputedStyleProperty[];
5202
+ /**
5203
+ * Whether or not iframes and shadow roots in the same target should be traversed when returning the
5204
+ * results (default is false).
5205
+ */
5206
+ pierce?: boolean;
5207
+ }
5208
+
5209
+ export interface GetNodesForSubtreeByStyleResponse {
5210
+ /**
5211
+ * Resulting nodes.
5212
+ */
5213
+ nodeIds: NodeId[];
5214
+ }
5215
+
5182
5216
  export interface GetNodeForLocationRequest {
5183
5217
  /**
5184
5218
  * X coordinate.
@@ -9166,6 +9200,23 @@ export namespace Protocol {
9166
9200
  errors?: SignedExchangeError[];
9167
9201
  }
9168
9202
 
9203
+ export type CrossOriginOpenerPolicyValue = ('SameOrigin' | 'SameOriginAllowPopups' | 'UnsafeNone' | 'SameOriginPlusCoep');
9204
+
9205
+ export interface CrossOriginOpenerPolicyStatus {
9206
+ value: CrossOriginOpenerPolicyValue;
9207
+ }
9208
+
9209
+ export type CrossOriginEmbedderPolicyValue = ('None' | 'RequireCorp');
9210
+
9211
+ export interface CrossOriginEmbedderPolicyStatus {
9212
+ value: CrossOriginEmbedderPolicyValue;
9213
+ }
9214
+
9215
+ export interface SecurityIsolationStatus {
9216
+ coop: CrossOriginOpenerPolicyStatus;
9217
+ coep: CrossOriginEmbedderPolicyStatus;
9218
+ }
9219
+
9169
9220
  export interface CanClearBrowserCacheResponse {
9170
9221
  /**
9171
9222
  * True if browser cache can be cleared.
@@ -9532,6 +9583,17 @@ export namespace Protocol {
9532
9583
  userAgentMetadata?: Emulation.UserAgentMetadata;
9533
9584
  }
9534
9585
 
9586
+ export interface GetSecurityIsolationStatusRequest {
9587
+ /**
9588
+ * If no frameId is provided, the status of the target is provided.
9589
+ */
9590
+ frameId?: Page.FrameId;
9591
+ }
9592
+
9593
+ export interface GetSecurityIsolationStatusResponse {
9594
+ status: SecurityIsolationStatus;
9595
+ }
9596
+
9535
9597
  /**
9536
9598
  * Fired when data chunk was received over the network.
9537
9599
  */
@@ -10485,6 +10547,16 @@ export namespace Protocol {
10485
10547
  */
10486
10548
  export type AdFrameType = ('none' | 'child' | 'root');
10487
10549
 
10550
+ /**
10551
+ * Indicates whether the frame is a secure context and why it is the case.
10552
+ */
10553
+ export type SecureContextType = ('Secure' | 'SecureLocalhost' | 'InsecureScheme' | 'InsecureAncestor');
10554
+
10555
+ /**
10556
+ * Indicates whether the frame is cross-origin isolated and why it is the case.
10557
+ */
10558
+ export type CrossOriginIsolatedContextType = ('Isolated' | 'NotIsolated' | 'NotIsolatedFeatureDisabled');
10559
+
10488
10560
  /**
10489
10561
  * Information about the Frame on the page.
10490
10562
  */
@@ -10536,6 +10608,14 @@ export namespace Protocol {
10536
10608
  * Indicates whether this frame was tagged as an ad.
10537
10609
  */
10538
10610
  adFrameType?: AdFrameType;
10611
+ /**
10612
+ * Indicates whether the main document is a secure context and explains why that is the case.
10613
+ */
10614
+ secureContextType: SecureContextType;
10615
+ /**
10616
+ * Indicates whether this is a cross origin isolated context.
10617
+ */
10618
+ crossOriginIsolatedContextType: CrossOriginIsolatedContextType;
10539
10619
  }
10540
10620
 
10541
10621
  /**