Skip to content

Commit 2823d32

Browse files
committed
Roll protocol to r1468520
1 parent c9a1a5d commit 2823d32

8 files changed

Lines changed: 155 additions & 57 deletions

changelog.md

Lines changed: 64 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,70 @@
11

22

3+
## Roll protocol to r1468520 — _2025-06-03T04:31:40.000Z_
4+
###### Diff: [`c9a1a5d...d8fdb5f`](https://github.com/ChromeDevTools/devtools-protocol/compare/c9a1a5d...d8fdb5f)
5+
6+
```diff
7+
@@ browser_protocol.pdl:8514 @@ domain Page
8+
AdFrameType adFrameType
9+
optional array of AdFrameExplanation explanations
10+
11+
- # Identifies the bottom-most script which caused the frame to be labelled
12+
- # as an ad.
13+
+ # Identifies the script which caused a script or frame to be labelled as an
14+
+ # ad.
15+
experimental type AdScriptId extends object
16+
properties
17+
- # Script Id of the bottom-most script which caused the frame to be labelled
18+
- # as an ad.
19+
+ # Script Id of the script which caused a script or frame to be labelled as
20+
+ # an ad.
21+
Runtime.ScriptId scriptId
22+
- # Id of adScriptId's debugger.
23+
+ # Id of scriptId's debugger.
24+
Runtime.UniqueDebuggerId debuggerId
25+
26+
+ # Encapsulates the script ancestry and the root script filterlist rule that
27+
+ # caused the frame to be labelled as an ad. Only created when `ancestryChain`
28+
+ # is not empty.
29+
+ experimental type AdScriptAncestry extends object
30+
+ properties
31+
+ # A chain of `AdScriptId`s representing the ancestry of an ad script that
32+
+ # led to the creation of a frame. The chain is ordered from the script
33+
+ # itself (lower level) up to its root ancestor that was flagged by
34+
+ # filterlist.
35+
+ array of AdScriptId ancestryChain
36+
+ # The filterlist rule that caused the root (last) script in
37+
+ # `ancestryChain` to be ad-tagged. Only populated if the rule is
38+
+ # available.
39+
+ optional string rootScriptFilterlistRule
40+
+
41+
# Indicates whether the frame is a secure context and why it is the case.
42+
experimental type SecureContextType extends string
43+
enum
44+
@@ -9291,15 +9306,16 @@ domain Page
45+
# Recommendation for manifest's id attribute to match current id computed from start_url
46+
optional string recommendedId
47+
48+
- experimental command getAdScriptAncestryIds
49+
+ experimental command getAdScriptAncestry
50+
parameters
51+
FrameId frameId
52+
returns
53+
# The ancestry chain of ad script identifiers leading to this frame's
54+
- # creation, ordered from the most immediate script (in the frame creation
55+
+ # creation, along with the root script's filterlist rule. The ancestry
56+
+ # chain is ordered from the most immediate script (in the frame creation
57+
# stack) to more distant ancestors (that created the immediately preceding
58+
# script). Only sent if frame is labelled as an ad and ids are available.
59+
- array of AdScriptId adScriptAncestryIds
60+
+ optional AdScriptAncestry adScriptAncestry
61+
62+
# Returns present frame tree structure.
63+
command getFrameTree
64+
```
65+
366
## Roll protocol to r1467305 — _2025-05-30T04:31:28.000Z_
4-
###### Diff: [`8aaa683...47ad7ee`](https://github.com/ChromeDevTools/devtools-protocol/compare/8aaa683...47ad7ee)
67+
###### Diff: [`8aaa683...c9a1a5d`](https://github.com/ChromeDevTools/devtools-protocol/compare/8aaa683...c9a1a5d)
568

669
```diff
770
@@ browser_protocol.pdl:3006 @@ domain DOM
@@ -13939,27 +14002,4 @@ index 8d8211b..2d56043 100644
1393914002
NodeId previousNodeId
1394014003
# Inserted node data.
1394114004
Node node
13942-
```
13943-
13944-
## Roll protocol to r1040073 — _2022-08-27T04:44:13.000Z_
13945-
###### Diff: [`4561609...6ea69cb`](https://github.com/ChromeDevTools/devtools-protocol/compare/4561609...6ea69cb)
13946-
13947-
```diff
13948-
@@ browser_protocol.pdl:835 @@ experimental domain Audits
13949-
# all cases except for success.
13950-
type FederatedAuthRequestIssueReason extends string
13951-
enum
13952-
- ApprovalDeclined
13953-
+ ShouldEmbargo
13954-
TooManyRequests
13955-
ManifestListHttpNotFound
13956-
ManifestListNoResponse
13957-
@@ -860,6 +860,7 @@ experimental domain Audits
13958-
IdTokenInvalidRequest
13959-
ErrorIdToken
13960-
Canceled
13961-
+ RpPageNotVisible
13962-
13963-
# This issue tracks client hints related issues. It's used to deprecate old
13964-
# features, encourage the use of new ones, and provide general guidance.
1396514005
```

json/browser_protocol.json

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18150,22 +18150,44 @@
1815018150
},
1815118151
{
1815218152
"id": "AdScriptId",
18153-
"description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad.",
18153+
"description": "Identifies the script which caused a script or frame to be labelled as an\nad.",
1815418154
"experimental": true,
1815518155
"type": "object",
1815618156
"properties": [
1815718157
{
1815818158
"name": "scriptId",
18159-
"description": "Script Id of the bottom-most script which caused the frame to be labelled\nas an ad.",
18159+
"description": "Script Id of the script which caused a script or frame to be labelled as\nan ad.",
1816018160
"$ref": "Runtime.ScriptId"
1816118161
},
1816218162
{
1816318163
"name": "debuggerId",
18164-
"description": "Id of adScriptId's debugger.",
18164+
"description": "Id of scriptId's debugger.",
1816518165
"$ref": "Runtime.UniqueDebuggerId"
1816618166
}
1816718167
]
1816818168
},
18169+
{
18170+
"id": "AdScriptAncestry",
18171+
"description": "Encapsulates the script ancestry and the root script filterlist rule that\ncaused the frame to be labelled as an ad. Only created when `ancestryChain`\nis not empty.",
18172+
"experimental": true,
18173+
"type": "object",
18174+
"properties": [
18175+
{
18176+
"name": "ancestryChain",
18177+
"description": "A chain of `AdScriptId`s representing the ancestry of an ad script that\nled to the creation of a frame. The chain is ordered from the script\nitself (lower level) up to its root ancestor that was flagged by\nfilterlist.",
18178+
"type": "array",
18179+
"items": {
18180+
"$ref": "AdScriptId"
18181+
}
18182+
},
18183+
{
18184+
"name": "rootScriptFilterlistRule",
18185+
"description": "The filterlist rule that caused the root (last) script in\n`ancestryChain` to be ad-tagged. Only populated if the rule is\navailable.",
18186+
"optional": true,
18187+
"type": "string"
18188+
}
18189+
]
18190+
},
1816918191
{
1817018192
"id": "SecureContextType",
1817118193
"description": "Indicates whether the frame is a secure context and why it is the case.",
@@ -20091,7 +20113,7 @@
2009120113
]
2009220114
},
2009320115
{
20094-
"name": "getAdScriptAncestryIds",
20116+
"name": "getAdScriptAncestry",
2009520117
"experimental": true,
2009620118
"parameters": [
2009720119
{
@@ -20101,12 +20123,10 @@
2010120123
],
2010220124
"returns": [
2010320125
{
20104-
"name": "adScriptAncestryIds",
20105-
"description": "The ancestry chain of ad script identifiers leading to this frame's\ncreation, ordered from the most immediate script (in the frame creation\nstack) to more distant ancestors (that created the immediately preceding\nscript). Only sent if frame is labelled as an ad and ids are available.",
20106-
"type": "array",
20107-
"items": {
20108-
"$ref": "AdScriptId"
20109-
}
20126+
"name": "adScriptAncestry",
20127+
"description": "The ancestry chain of ad script identifiers leading to this frame's\ncreation, along with the root script's filterlist rule. The ancestry\nchain is ordered from the most immediate script (in the frame creation\nstack) to more distant ancestors (that created the immediately preceding\nscript). Only sent if frame is labelled as an ad and ids are available.",
20128+
"optional": true,
20129+
"$ref": "AdScriptAncestry"
2011020130
}
2011120131
]
2011220132
},

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.1467305",
3+
"version": "0.0.1468520",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8514,16 +8514,31 @@ domain Page
85148514
AdFrameType adFrameType
85158515
optional array of AdFrameExplanation explanations
85168516

8517-
# Identifies the bottom-most script which caused the frame to be labelled
8518-
# as an ad.
8517+
# Identifies the script which caused a script or frame to be labelled as an
8518+
# ad.
85198519
experimental type AdScriptId extends object
85208520
properties
8521-
# Script Id of the bottom-most script which caused the frame to be labelled
8522-
# as an ad.
8521+
# Script Id of the script which caused a script or frame to be labelled as
8522+
# an ad.
85238523
Runtime.ScriptId scriptId
8524-
# Id of adScriptId's debugger.
8524+
# Id of scriptId's debugger.
85258525
Runtime.UniqueDebuggerId debuggerId
85268526

8527+
# Encapsulates the script ancestry and the root script filterlist rule that
8528+
# caused the frame to be labelled as an ad. Only created when `ancestryChain`
8529+
# is not empty.
8530+
experimental type AdScriptAncestry extends object
8531+
properties
8532+
# A chain of `AdScriptId`s representing the ancestry of an ad script that
8533+
# led to the creation of a frame. The chain is ordered from the script
8534+
# itself (lower level) up to its root ancestor that was flagged by
8535+
# filterlist.
8536+
array of AdScriptId ancestryChain
8537+
# The filterlist rule that caused the root (last) script in
8538+
# `ancestryChain` to be ad-tagged. Only populated if the rule is
8539+
# available.
8540+
optional string rootScriptFilterlistRule
8541+
85278542
# Indicates whether the frame is a secure context and why it is the case.
85288543
experimental type SecureContextType extends string
85298544
enum
@@ -9291,15 +9306,16 @@ domain Page
92919306
# Recommendation for manifest's id attribute to match current id computed from start_url
92929307
optional string recommendedId
92939308

9294-
experimental command getAdScriptAncestryIds
9309+
experimental command getAdScriptAncestry
92959310
parameters
92969311
FrameId frameId
92979312
returns
92989313
# The ancestry chain of ad script identifiers leading to this frame's
9299-
# creation, ordered from the most immediate script (in the frame creation
9314+
# creation, along with the root script's filterlist rule. The ancestry
9315+
# chain is ordered from the most immediate script (in the frame creation
93009316
# stack) to more distant ancestors (that created the immediately preceding
93019317
# script). Only sent if frame is labelled as an ad and ids are available.
9302-
array of AdScriptId adScriptAncestryIds
9318+
optional AdScriptAncestry adScriptAncestry
93039319

93049320
# Returns present frame tree structure.
93059321
command getFrameTree

types/protocol-mapping.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,9 +4052,9 @@ export namespace ProtocolMapping {
40524052
paramsType: [];
40534053
returnType: Protocol.Page.GetAppIdResponse;
40544054
};
4055-
'Page.getAdScriptAncestryIds': {
4056-
paramsType: [Protocol.Page.GetAdScriptAncestryIdsRequest];
4057-
returnType: Protocol.Page.GetAdScriptAncestryIdsResponse;
4055+
'Page.getAdScriptAncestry': {
4056+
paramsType: [Protocol.Page.GetAdScriptAncestryRequest];
4057+
returnType: Protocol.Page.GetAdScriptAncestryResponse;
40584058
};
40594059
/**
40604060
* Returns present frame tree structure.

types/protocol-proxy-api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,7 +3101,7 @@ export namespace ProtocolProxyApi {
31013101
*/
31023102
getAppId(): Promise<Protocol.Page.GetAppIdResponse>;
31033103

3104-
getAdScriptAncestryIds(params: Protocol.Page.GetAdScriptAncestryIdsRequest): Promise<Protocol.Page.GetAdScriptAncestryIdsResponse>;
3104+
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<Protocol.Page.GetAdScriptAncestryResponse>;
31053105

31063106
/**
31073107
* Returns present frame tree structure.

types/protocol-tests-proxy-api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3337,7 +3337,7 @@ export namespace ProtocolTestsProxyApi {
33373337
*/
33383338
getAppId(): Promise<{id: number, result: Protocol.Page.GetAppIdResponse, sessionId: string}>;
33393339

3340-
getAdScriptAncestryIds(params: Protocol.Page.GetAdScriptAncestryIdsRequest): Promise<{id: number, result: Protocol.Page.GetAdScriptAncestryIdsResponse, sessionId: string}>;
3340+
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<{id: number, result: Protocol.Page.GetAdScriptAncestryResponse, sessionId: string}>;
33413341

33423342
/**
33433343
* Returns present frame tree structure.

types/protocol.d.ts

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13985,21 +13985,42 @@ export namespace Protocol {
1398513985
}
1398613986

1398713987
/**
13988-
* Identifies the bottom-most script which caused the frame to be labelled
13989-
* as an ad.
13988+
* Identifies the script which caused a script or frame to be labelled as an
13989+
* ad.
1399013990
*/
1399113991
export interface AdScriptId {
1399213992
/**
13993-
* Script Id of the bottom-most script which caused the frame to be labelled
13994-
* as an ad.
13993+
* Script Id of the script which caused a script or frame to be labelled as
13994+
* an ad.
1399513995
*/
1399613996
scriptId: Runtime.ScriptId;
1399713997
/**
13998-
* Id of adScriptId's debugger.
13998+
* Id of scriptId's debugger.
1399913999
*/
1400014000
debuggerId: Runtime.UniqueDebuggerId;
1400114001
}
1400214002

14003+
/**
14004+
* Encapsulates the script ancestry and the root script filterlist rule that
14005+
* caused the frame to be labelled as an ad. Only created when `ancestryChain`
14006+
* is not empty.
14007+
*/
14008+
export interface AdScriptAncestry {
14009+
/**
14010+
* A chain of `AdScriptId`s representing the ancestry of an ad script that
14011+
* led to the creation of a frame. The chain is ordered from the script
14012+
* itself (lower level) up to its root ancestor that was flagged by
14013+
* filterlist.
14014+
*/
14015+
ancestryChain: AdScriptId[];
14016+
/**
14017+
* The filterlist rule that caused the root (last) script in
14018+
* `ancestryChain` to be ad-tagged. Only populated if the rule is
14019+
* available.
14020+
*/
14021+
rootScriptFilterlistRule?: string;
14022+
}
14023+
1400314024
/**
1400414025
* Indicates whether the frame is a secure context and why it is the case.
1400514026
*/
@@ -14903,18 +14924,19 @@ export namespace Protocol {
1490314924
recommendedId?: string;
1490414925
}
1490514926

14906-
export interface GetAdScriptAncestryIdsRequest {
14927+
export interface GetAdScriptAncestryRequest {
1490714928
frameId: FrameId;
1490814929
}
1490914930

14910-
export interface GetAdScriptAncestryIdsResponse {
14931+
export interface GetAdScriptAncestryResponse {
1491114932
/**
1491214933
* The ancestry chain of ad script identifiers leading to this frame's
14913-
* creation, ordered from the most immediate script (in the frame creation
14934+
* creation, along with the root script's filterlist rule. The ancestry
14935+
* chain is ordered from the most immediate script (in the frame creation
1491414936
* stack) to more distant ancestors (that created the immediately preceding
1491514937
* script). Only sent if frame is labelled as an ad and ids are available.
1491614938
*/
14917-
adScriptAncestryIds: AdScriptId[];
14939+
adScriptAncestry?: AdScriptAncestry;
1491814940
}
1491914941

1492014942
export interface GetFrameTreeResponse {

0 commit comments

Comments
 (0)