devtools-protocol 0.0.1467305 → 0.0.1468520
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.
@@ -18150,22 +18150,44 @@
|
|
18150
18150
|
},
|
18151
18151
|
{
|
18152
18152
|
"id": "AdScriptId",
|
18153
|
-
"description": "Identifies the
|
18153
|
+
"description": "Identifies the script which caused a script or frame to be labelled as an\nad.",
|
18154
18154
|
"experimental": true,
|
18155
18155
|
"type": "object",
|
18156
18156
|
"properties": [
|
18157
18157
|
{
|
18158
18158
|
"name": "scriptId",
|
18159
|
-
"description": "Script Id of the
|
18159
|
+
"description": "Script Id of the script which caused a script or frame to be labelled as\nan ad.",
|
18160
18160
|
"$ref": "Runtime.ScriptId"
|
18161
18161
|
},
|
18162
18162
|
{
|
18163
18163
|
"name": "debuggerId",
|
18164
|
-
"description": "Id of
|
18164
|
+
"description": "Id of scriptId's debugger.",
|
18165
18165
|
"$ref": "Runtime.UniqueDebuggerId"
|
18166
18166
|
}
|
18167
18167
|
]
|
18168
18168
|
},
|
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
|
+
},
|
18169
18191
|
{
|
18170
18192
|
"id": "SecureContextType",
|
18171
18193
|
"description": "Indicates whether the frame is a secure context and why it is the case.",
|
@@ -20091,7 +20113,7 @@
|
|
20091
20113
|
]
|
20092
20114
|
},
|
20093
20115
|
{
|
20094
|
-
"name": "
|
20116
|
+
"name": "getAdScriptAncestry",
|
20095
20117
|
"experimental": true,
|
20096
20118
|
"parameters": [
|
20097
20119
|
{
|
@@ -20101,12 +20123,10 @@
|
|
20101
20123
|
],
|
20102
20124
|
"returns": [
|
20103
20125
|
{
|
20104
|
-
"name": "
|
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
|
-
"
|
20107
|
-
"
|
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"
|
20110
20130
|
}
|
20111
20131
|
]
|
20112
20132
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -8514,16 +8514,31 @@ domain Page
|
|
8514
8514
|
AdFrameType adFrameType
|
8515
8515
|
optional array of AdFrameExplanation explanations
|
8516
8516
|
|
8517
|
-
# Identifies the
|
8518
|
-
#
|
8517
|
+
# Identifies the script which caused a script or frame to be labelled as an
|
8518
|
+
# ad.
|
8519
8519
|
experimental type AdScriptId extends object
|
8520
8520
|
properties
|
8521
|
-
# Script Id of the
|
8522
|
-
#
|
8521
|
+
# Script Id of the script which caused a script or frame to be labelled as
|
8522
|
+
# an ad.
|
8523
8523
|
Runtime.ScriptId scriptId
|
8524
|
-
# Id of
|
8524
|
+
# Id of scriptId's debugger.
|
8525
8525
|
Runtime.UniqueDebuggerId debuggerId
|
8526
8526
|
|
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
|
+
|
8527
8542
|
# Indicates whether the frame is a secure context and why it is the case.
|
8528
8543
|
experimental type SecureContextType extends string
|
8529
8544
|
enum
|
@@ -9291,15 +9306,16 @@ domain Page
|
|
9291
9306
|
# Recommendation for manifest's id attribute to match current id computed from start_url
|
9292
9307
|
optional string recommendedId
|
9293
9308
|
|
9294
|
-
experimental command
|
9309
|
+
experimental command getAdScriptAncestry
|
9295
9310
|
parameters
|
9296
9311
|
FrameId frameId
|
9297
9312
|
returns
|
9298
9313
|
# The ancestry chain of ad script identifiers leading to this frame's
|
9299
|
-
# 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
|
9300
9316
|
# stack) to more distant ancestors (that created the immediately preceding
|
9301
9317
|
# script). Only sent if frame is labelled as an ad and ids are available.
|
9302
|
-
|
9318
|
+
optional AdScriptAncestry adScriptAncestry
|
9303
9319
|
|
9304
9320
|
# Returns present frame tree structure.
|
9305
9321
|
command getFrameTree
|
@@ -4052,9 +4052,9 @@ export namespace ProtocolMapping {
|
|
4052
4052
|
paramsType: [];
|
4053
4053
|
returnType: Protocol.Page.GetAppIdResponse;
|
4054
4054
|
};
|
4055
|
-
'Page.
|
4056
|
-
paramsType: [Protocol.Page.
|
4057
|
-
returnType: Protocol.Page.
|
4055
|
+
'Page.getAdScriptAncestry': {
|
4056
|
+
paramsType: [Protocol.Page.GetAdScriptAncestryRequest];
|
4057
|
+
returnType: Protocol.Page.GetAdScriptAncestryResponse;
|
4058
4058
|
};
|
4059
4059
|
/**
|
4060
4060
|
* Returns present frame tree structure.
|
@@ -3101,7 +3101,7 @@ export namespace ProtocolProxyApi {
|
|
3101
3101
|
*/
|
3102
3102
|
getAppId(): Promise<Protocol.Page.GetAppIdResponse>;
|
3103
3103
|
|
3104
|
-
|
3104
|
+
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<Protocol.Page.GetAdScriptAncestryResponse>;
|
3105
3105
|
|
3106
3106
|
/**
|
3107
3107
|
* Returns present frame tree structure.
|
@@ -3337,7 +3337,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3337
3337
|
*/
|
3338
3338
|
getAppId(): Promise<{id: number, result: Protocol.Page.GetAppIdResponse, sessionId: string}>;
|
3339
3339
|
|
3340
|
-
|
3340
|
+
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<{id: number, result: Protocol.Page.GetAdScriptAncestryResponse, sessionId: string}>;
|
3341
3341
|
|
3342
3342
|
/**
|
3343
3343
|
* Returns present frame tree structure.
|
package/types/protocol.d.ts
CHANGED
@@ -13985,21 +13985,42 @@ export namespace Protocol {
|
|
13985
13985
|
}
|
13986
13986
|
|
13987
13987
|
/**
|
13988
|
-
* Identifies the
|
13989
|
-
*
|
13988
|
+
* Identifies the script which caused a script or frame to be labelled as an
|
13989
|
+
* ad.
|
13990
13990
|
*/
|
13991
13991
|
export interface AdScriptId {
|
13992
13992
|
/**
|
13993
|
-
* Script Id of the
|
13994
|
-
*
|
13993
|
+
* Script Id of the script which caused a script or frame to be labelled as
|
13994
|
+
* an ad.
|
13995
13995
|
*/
|
13996
13996
|
scriptId: Runtime.ScriptId;
|
13997
13997
|
/**
|
13998
|
-
* Id of
|
13998
|
+
* Id of scriptId's debugger.
|
13999
13999
|
*/
|
14000
14000
|
debuggerId: Runtime.UniqueDebuggerId;
|
14001
14001
|
}
|
14002
14002
|
|
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
|
+
|
14003
14024
|
/**
|
14004
14025
|
* Indicates whether the frame is a secure context and why it is the case.
|
14005
14026
|
*/
|
@@ -14903,18 +14924,19 @@ export namespace Protocol {
|
|
14903
14924
|
recommendedId?: string;
|
14904
14925
|
}
|
14905
14926
|
|
14906
|
-
export interface
|
14927
|
+
export interface GetAdScriptAncestryRequest {
|
14907
14928
|
frameId: FrameId;
|
14908
14929
|
}
|
14909
14930
|
|
14910
|
-
export interface
|
14931
|
+
export interface GetAdScriptAncestryResponse {
|
14911
14932
|
/**
|
14912
14933
|
* The ancestry chain of ad script identifiers leading to this frame's
|
14913
|
-
* 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
|
14914
14936
|
* stack) to more distant ancestors (that created the immediately preceding
|
14915
14937
|
* script). Only sent if frame is labelled as an ad and ids are available.
|
14916
14938
|
*/
|
14917
|
-
|
14939
|
+
adScriptAncestry?: AdScriptAncestry;
|
14918
14940
|
}
|
14919
14941
|
|
14920
14942
|
export interface GetFrameTreeResponse {
|