devtools-protocol 0.0.1601756 → 0.0.1602427

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.
@@ -6928,7 +6928,8 @@
6928
6928
  "domain": "DOM",
6929
6929
  "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object\nthat has an `id`. This `id` can be used to get additional information on the Node, resolve it into\nthe JavaScript object wrapper, etc. It is important that client receives DOM events only for the\nnodes that are known to the client. Backend keeps track of the nodes that were sent to the client\nand never sends the same node twice. It is client's responsibility to collect information about\nthe nodes that were sent to the client. Note that `iframe` owner elements will return\ncorresponding document elements as their child nodes.",
6930
6930
  "dependencies": [
6931
- "Runtime"
6931
+ "Runtime",
6932
+ "Network"
6932
6933
  ],
6933
6934
  "types": [
6934
6935
  {
@@ -7285,10 +7286,10 @@
7285
7286
  }
7286
7287
  },
7287
7288
  {
7288
- "name": "isAdRelated",
7289
+ "name": "adProvenance",
7289
7290
  "experimental": true,
7290
7291
  "optional": true,
7291
- "type": "boolean"
7292
+ "$ref": "Network.AdProvenance"
7292
7293
  }
7293
7294
  ]
7294
7295
  },
@@ -8854,9 +8855,10 @@
8854
8855
  "$ref": "DOM.NodeId"
8855
8856
  },
8856
8857
  {
8857
- "name": "isAdRelated",
8858
- "description": "If the node is ad related.",
8859
- "type": "boolean"
8858
+ "name": "adProvenance",
8859
+ "description": "The provenance of the ad related node, if it is ad related.",
8860
+ "optional": true,
8861
+ "$ref": "Network.AdProvenance"
8860
8862
  }
8861
8863
  ]
8862
8864
  },
@@ -17297,6 +17299,26 @@
17297
17299
  }
17298
17300
  ]
17299
17301
  },
17302
+ {
17303
+ "id": "AdProvenance",
17304
+ "description": "Represents the provenance of an ad resource or element. Only one of\n`filterlistRule` or `adScriptAncestry` can be set. If `filterlistRule`\nis provided, the resource URL directly matches a filter list rule. If\n`adScriptAncestry` is provided, an ad script initiated the resource fetch or\nappended the element to the DOM. If neither is provided, the entity is\nknown to be an ad, but provenance tracking information is unavailable.",
17305
+ "experimental": true,
17306
+ "type": "object",
17307
+ "properties": [
17308
+ {
17309
+ "name": "filterlistRule",
17310
+ "description": "The filterlist rule that matched, if any.",
17311
+ "optional": true,
17312
+ "type": "string"
17313
+ },
17314
+ {
17315
+ "name": "adScriptAncestry",
17316
+ "description": "The script ancestry that created the ad, if any.",
17317
+ "optional": true,
17318
+ "$ref": "AdAncestry"
17319
+ }
17320
+ ]
17321
+ },
17300
17322
  {
17301
17323
  "id": "CrossOriginOpenerPolicyValue",
17302
17324
  "experimental": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1601756",
3
+ "version": "0.0.1602427",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -13,6 +13,7 @@
13
13
  # corresponding document elements as their child nodes.
14
14
  domain DOM
15
15
  depends on Runtime
16
+ depends on Network
16
17
 
17
18
  # Unique DOM node identifier.
18
19
  type NodeId extends integer
@@ -184,7 +185,7 @@ domain DOM
184
185
  experimental optional boolean isScrollable
185
186
  experimental optional boolean affectedByStartingStyles
186
187
  experimental optional array of StyleSheetId adoptedStyleSheets
187
- experimental optional boolean isAdRelated
188
+ experimental optional Network.AdProvenance adProvenance
188
189
 
189
190
  # A structure to hold the top-level node of a detached tree and an array of its retained descendants.
190
191
  type DetachedElementInfo extends object
@@ -919,8 +920,8 @@ domain DOM
919
920
  parameters
920
921
  # The id of the node.
921
922
  DOM.NodeId nodeId
922
- # If the node is ad related.
923
- boolean isAdRelated
923
+ # The provenance of the ad related node, if it is ad related.
924
+ optional Network.AdProvenance adProvenance
924
925
 
925
926
  # Fired when a node's starting styles changes.
926
927
  experimental event affectedByStartingStylesFlagUpdated
@@ -1825,6 +1825,19 @@ domain Network
1825
1825
  # `ancestryChain` to be tagged as an ad.
1826
1826
  optional string rootScriptFilterlistRule
1827
1827
 
1828
+ # Represents the provenance of an ad resource or element. Only one of
1829
+ # `filterlistRule` or `adScriptAncestry` can be set. If `filterlistRule`
1830
+ # is provided, the resource URL directly matches a filter list rule. If
1831
+ # `adScriptAncestry` is provided, an ad script initiated the resource fetch or
1832
+ # appended the element to the DOM. If neither is provided, the entity is
1833
+ # known to be an ad, but provenance tracking information is unavailable.
1834
+ experimental type AdProvenance extends object
1835
+ properties
1836
+ # The filterlist rule that matched, if any.
1837
+ optional string filterlistRule
1838
+ # The script ancestry that created the ad, if any.
1839
+ optional AdAncestry adScriptAncestry
1840
+
1828
1841
  # Fired when additional information about a requestWillBeSent event is available from the
1829
1842
  # network stack. Not every requestWillBeSent event will have an additional
1830
1843
  # requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent
@@ -7062,7 +7062,7 @@ export namespace Protocol {
7062
7062
  /**
7063
7063
  * @experimental
7064
7064
  */
7065
- isAdRelated?: boolean;
7065
+ adProvenance?: Network.AdProvenance;
7066
7066
  }
7067
7067
 
7068
7068
  /**
@@ -8138,9 +8138,9 @@ export namespace Protocol {
8138
8138
  */
8139
8139
  nodeId: DOM.NodeId;
8140
8140
  /**
8141
- * If the node is ad related.
8141
+ * The provenance of the ad related node, if it is ad related.
8142
8142
  */
8143
- isAdRelated: boolean;
8143
+ adProvenance?: Network.AdProvenance;
8144
8144
  }
8145
8145
 
8146
8146
  /**
@@ -13687,6 +13687,26 @@ export namespace Protocol {
13687
13687
  rootScriptFilterlistRule?: string;
13688
13688
  }
13689
13689
 
13690
+ /**
13691
+ * Represents the provenance of an ad resource or element. Only one of
13692
+ * `filterlistRule` or `adScriptAncestry` can be set. If `filterlistRule`
13693
+ * is provided, the resource URL directly matches a filter list rule. If
13694
+ * `adScriptAncestry` is provided, an ad script initiated the resource fetch or
13695
+ * appended the element to the DOM. If neither is provided, the entity is
13696
+ * known to be an ad, but provenance tracking information is unavailable.
13697
+ * @experimental
13698
+ */
13699
+ export interface AdProvenance {
13700
+ /**
13701
+ * The filterlist rule that matched, if any.
13702
+ */
13703
+ filterlistRule?: string;
13704
+ /**
13705
+ * The script ancestry that created the ad, if any.
13706
+ */
13707
+ adScriptAncestry?: AdAncestry;
13708
+ }
13709
+
13690
13710
  /**
13691
13711
  * @experimental
13692
13712
  */