Skip to content

Commit 169ca38

Browse files
committed
Roll protocol to r1602427
1 parent 7a16bec commit 169ca38

File tree

7 files changed

+130
-30
lines changed

7 files changed

+130
-30
lines changed

changelog.md

Lines changed: 59 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,65 @@
11

22

3+
## Roll protocol to r1602427 — _2026-03-20T04:57:27.000Z_
4+
###### Diff: [`7a16bec...c588f6e`](https://github.com/ChromeDevTools/devtools-protocol/compare/7a16bec...c588f6e)
5+
6+
```diff
7+
@@ domains/DOM.pdl:13 @@ @@ -13,6 +13,7 @@
8+
# corresponding document elements as their child nodes.
9+
domain DOM
10+
depends on Runtime
11+
+ depends on Network
12+
13+
# Unique DOM node identifier.
14+
type NodeId extends integer
15+
@@ -184,7 +185,7 @@ domain DOM
16+
experimental optional boolean isScrollable
17+
experimental optional boolean affectedByStartingStyles
18+
experimental optional array of StyleSheetId adoptedStyleSheets
19+
- experimental optional boolean isAdRelated
20+
+ experimental optional Network.AdProvenance adProvenance
21+
22+
# A structure to hold the top-level node of a detached tree and an array of its retained descendants.
23+
type DetachedElementInfo extends object
24+
@@ -919,8 +920,8 @@ domain DOM
25+
parameters
26+
# The id of the node.
27+
DOM.NodeId nodeId
28+
- # If the node is ad related.
29+
- boolean isAdRelated
30+
+ # The provenance of the ad related node, if it is ad related.
31+
+ optional Network.AdProvenance adProvenance
32+
33+
# Fired when a node's starting styles changes.
34+
experimental event affectedByStartingStylesFlagUpdated
35+
diff --git a/pdl/domains/Network.pdl b/pdl/domains/Network.pdl
36+
index 504edfe8..a03d977b 100644
37+
--- a/pdl/domains/Network.pdl
38+
+++ b/pdl/domains/Network.pdl
39+
@@ -1825,6 +1825,19 @@ domain Network
40+
# `ancestryChain` to be tagged as an ad.
41+
optional string rootScriptFilterlistRule
42+
43+
+ # Represents the provenance of an ad resource or element. Only one of
44+
+ # `filterlistRule` or `adScriptAncestry` can be set. If `filterlistRule`
45+
+ # is provided, the resource URL directly matches a filter list rule. If
46+
+ # `adScriptAncestry` is provided, an ad script initiated the resource fetch or
47+
+ # appended the element to the DOM. If neither is provided, the entity is
48+
+ # known to be an ad, but provenance tracking information is unavailable.
49+
+ experimental type AdProvenance extends object
50+
+ properties
51+
+ # The filterlist rule that matched, if any.
52+
+ optional string filterlistRule
53+
+ # The script ancestry that created the ad, if any.
54+
+ optional AdAncestry adScriptAncestry
55+
+
56+
# Fired when additional information about a requestWillBeSent event is available from the
57+
# network stack. Not every requestWillBeSent event will have an additional
58+
# requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent
59+
```
60+
361
## Roll protocol to r1601756 — _2026-03-19T05:02:00.000Z_
4-
###### Diff: [`e653604...a0bd184`](https://github.com/ChromeDevTools/devtools-protocol/compare/e653604...a0bd184)
62+
###### Diff: [`e653604...7a16bec`](https://github.com/ChromeDevTools/devtools-protocol/compare/e653604...7a16bec)
563

664
```diff
765
@@ domains/CSS.pdl:602 @@ experimental domain CSS
@@ -42717,18 +42775,4 @@ index 0dbdc01d..7a3c772c 100644
4271742775
experimental optional SerializationOptions serializationOptions
4271842776
returns
4271942777
# Evaluation result.
42720-
```
42721-
42722-
## Roll protocol to r1148337 — _2023-05-24T04:27:07.000Z_
42723-
###### Diff: [`fb80158...4f898ab`](https://github.com/ChromeDevTools/devtools-protocol/compare/fb80158...4f898ab)
42724-
42725-
```diff
42726-
@@ browser_protocol.pdl:5121 @@ domain Network
42727-
experimental number pushStart
42728-
# Time the server finished pushing request.
42729-
experimental number pushEnd
42730-
+ # Started receiving response headers.
42731-
+ experimental number receiveHeadersStart
42732-
# Finished receiving response headers.
42733-
number receiveHeadersEnd
4273442778
```

json/browser_protocol.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6928,7 +6928,8 @@
69286928
"domain": "DOM",
69296929
"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.",
69306930
"dependencies": [
6931-
"Runtime"
6931+
"Runtime",
6932+
"Network"
69326933
],
69336934
"types": [
69346935
{
@@ -7285,10 +7286,10 @@
72857286
}
72867287
},
72877288
{
7288-
"name": "isAdRelated",
7289+
"name": "adProvenance",
72897290
"experimental": true,
72907291
"optional": true,
7291-
"type": "boolean"
7292+
"$ref": "Network.AdProvenance"
72927293
}
72937294
]
72947295
},
@@ -8854,9 +8855,10 @@
88548855
"$ref": "DOM.NodeId"
88558856
},
88568857
{
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"
88608862
}
88618863
]
88628864
},
@@ -17297,6 +17299,26 @@
1729717299
}
1729817300
]
1729917301
},
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+
},
1730017322
{
1730117323
"id": "CrossOriginOpenerPolicyValue",
1730217324
"experimental": true,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1601756",
3+
"version": "0.0.1602427",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/domains/DOM.pdl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# corresponding document elements as their child nodes.
1414
domain DOM
1515
depends on Runtime
16+
depends on Network
1617

1718
# Unique DOM node identifier.
1819
type NodeId extends integer
@@ -184,7 +185,7 @@ domain DOM
184185
experimental optional boolean isScrollable
185186
experimental optional boolean affectedByStartingStyles
186187
experimental optional array of StyleSheetId adoptedStyleSheets
187-
experimental optional boolean isAdRelated
188+
experimental optional Network.AdProvenance adProvenance
188189

189190
# A structure to hold the top-level node of a detached tree and an array of its retained descendants.
190191
type DetachedElementInfo extends object
@@ -919,8 +920,8 @@ domain DOM
919920
parameters
920921
# The id of the node.
921922
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
924925

925926
# Fired when a node's starting styles changes.
926927
experimental event affectedByStartingStylesFlagUpdated

pdl/domains/Network.pdl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,19 @@ domain Network
18251825
# `ancestryChain` to be tagged as an ad.
18261826
optional string rootScriptFilterlistRule
18271827

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+
18281841
# Fired when additional information about a requestWillBeSent event is available from the
18291842
# network stack. Not every requestWillBeSent event will have an additional
18301843
# requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent

types/protocol.d.ts

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7062,7 +7062,7 @@ export namespace Protocol {
70627062
/**
70637063
* @experimental
70647064
*/
7065-
isAdRelated?: boolean;
7065+
adProvenance?: Network.AdProvenance;
70667066
}
70677067

70687068
/**
@@ -8138,9 +8138,9 @@ export namespace Protocol {
81388138
*/
81398139
nodeId: DOM.NodeId;
81408140
/**
8141-
* If the node is ad related.
8141+
* The provenance of the ad related node, if it is ad related.
81428142
*/
8143-
isAdRelated: boolean;
8143+
adProvenance?: Network.AdProvenance;
81448144
}
81458145

81468146
/**
@@ -13687,6 +13687,26 @@ export namespace Protocol {
1368713687
rootScriptFilterlistRule?: string;
1368813688
}
1368913689

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+
1369013710
/**
1369113711
* @experimental
1369213712
*/

0 commit comments

Comments
 (0)