devtools-protocol 0.0.1467305 → 0.0.1470888
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.
@@ -10151,6 +10151,17 @@
|
|
10151
10151
|
}
|
10152
10152
|
]
|
10153
10153
|
},
|
10154
|
+
{
|
10155
|
+
"name": "setEmulatedOSTextScale",
|
10156
|
+
"description": "Emulates the given OS text scale.",
|
10157
|
+
"parameters": [
|
10158
|
+
{
|
10159
|
+
"name": "scale",
|
10160
|
+
"optional": true,
|
10161
|
+
"type": "number"
|
10162
|
+
}
|
10163
|
+
]
|
10164
|
+
},
|
10154
10165
|
{
|
10155
10166
|
"name": "setGeolocationOverride",
|
10156
10167
|
"description": "Overrides the Geolocation Position or Error. Omitting latitude, longitude or\naccuracy emulates position unavailable.",
|
@@ -18150,22 +18161,44 @@
|
|
18150
18161
|
},
|
18151
18162
|
{
|
18152
18163
|
"id": "AdScriptId",
|
18153
|
-
"description": "Identifies the
|
18164
|
+
"description": "Identifies the script which caused a script or frame to be labelled as an\nad.",
|
18154
18165
|
"experimental": true,
|
18155
18166
|
"type": "object",
|
18156
18167
|
"properties": [
|
18157
18168
|
{
|
18158
18169
|
"name": "scriptId",
|
18159
|
-
"description": "Script Id of the
|
18170
|
+
"description": "Script Id of the script which caused a script or frame to be labelled as\nan ad.",
|
18160
18171
|
"$ref": "Runtime.ScriptId"
|
18161
18172
|
},
|
18162
18173
|
{
|
18163
18174
|
"name": "debuggerId",
|
18164
|
-
"description": "Id of
|
18175
|
+
"description": "Id of scriptId's debugger.",
|
18165
18176
|
"$ref": "Runtime.UniqueDebuggerId"
|
18166
18177
|
}
|
18167
18178
|
]
|
18168
18179
|
},
|
18180
|
+
{
|
18181
|
+
"id": "AdScriptAncestry",
|
18182
|
+
"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.",
|
18183
|
+
"experimental": true,
|
18184
|
+
"type": "object",
|
18185
|
+
"properties": [
|
18186
|
+
{
|
18187
|
+
"name": "ancestryChain",
|
18188
|
+
"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.",
|
18189
|
+
"type": "array",
|
18190
|
+
"items": {
|
18191
|
+
"$ref": "AdScriptId"
|
18192
|
+
}
|
18193
|
+
},
|
18194
|
+
{
|
18195
|
+
"name": "rootScriptFilterlistRule",
|
18196
|
+
"description": "The filterlist rule that caused the root (last) script in\n`ancestryChain` to be ad-tagged. Only populated if the rule is\navailable.",
|
18197
|
+
"optional": true,
|
18198
|
+
"type": "string"
|
18199
|
+
}
|
18200
|
+
]
|
18201
|
+
},
|
18169
18202
|
{
|
18170
18203
|
"id": "SecureContextType",
|
18171
18204
|
"description": "Indicates whether the frame is a secure context and why it is the case.",
|
@@ -20091,7 +20124,7 @@
|
|
20091
20124
|
]
|
20092
20125
|
},
|
20093
20126
|
{
|
20094
|
-
"name": "
|
20127
|
+
"name": "getAdScriptAncestry",
|
20095
20128
|
"experimental": true,
|
20096
20129
|
"parameters": [
|
20097
20130
|
{
|
@@ -20101,12 +20134,10 @@
|
|
20101
20134
|
],
|
20102
20135
|
"returns": [
|
20103
20136
|
{
|
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
|
-
}
|
20137
|
+
"name": "adScriptAncestry",
|
20138
|
+
"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.",
|
20139
|
+
"optional": true,
|
20140
|
+
"$ref": "AdScriptAncestry"
|
20110
20141
|
}
|
20111
20142
|
]
|
20112
20143
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -4700,6 +4700,11 @@ domain Emulation
|
|
4700
4700
|
protanopia
|
4701
4701
|
tritanopia
|
4702
4702
|
|
4703
|
+
# Emulates the given OS text scale.
|
4704
|
+
command setEmulatedOSTextScale
|
4705
|
+
parameters
|
4706
|
+
optional number scale
|
4707
|
+
|
4703
4708
|
# Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
4704
4709
|
# accuracy emulates position unavailable.
|
4705
4710
|
command setGeolocationOverride
|
@@ -8514,16 +8519,31 @@ domain Page
|
|
8514
8519
|
AdFrameType adFrameType
|
8515
8520
|
optional array of AdFrameExplanation explanations
|
8516
8521
|
|
8517
|
-
# Identifies the
|
8518
|
-
#
|
8522
|
+
# Identifies the script which caused a script or frame to be labelled as an
|
8523
|
+
# ad.
|
8519
8524
|
experimental type AdScriptId extends object
|
8520
8525
|
properties
|
8521
|
-
# Script Id of the
|
8522
|
-
#
|
8526
|
+
# Script Id of the script which caused a script or frame to be labelled as
|
8527
|
+
# an ad.
|
8523
8528
|
Runtime.ScriptId scriptId
|
8524
|
-
# Id of
|
8529
|
+
# Id of scriptId's debugger.
|
8525
8530
|
Runtime.UniqueDebuggerId debuggerId
|
8526
8531
|
|
8532
|
+
# Encapsulates the script ancestry and the root script filterlist rule that
|
8533
|
+
# caused the frame to be labelled as an ad. Only created when `ancestryChain`
|
8534
|
+
# is not empty.
|
8535
|
+
experimental type AdScriptAncestry extends object
|
8536
|
+
properties
|
8537
|
+
# A chain of `AdScriptId`s representing the ancestry of an ad script that
|
8538
|
+
# led to the creation of a frame. The chain is ordered from the script
|
8539
|
+
# itself (lower level) up to its root ancestor that was flagged by
|
8540
|
+
# filterlist.
|
8541
|
+
array of AdScriptId ancestryChain
|
8542
|
+
# The filterlist rule that caused the root (last) script in
|
8543
|
+
# `ancestryChain` to be ad-tagged. Only populated if the rule is
|
8544
|
+
# available.
|
8545
|
+
optional string rootScriptFilterlistRule
|
8546
|
+
|
8527
8547
|
# Indicates whether the frame is a secure context and why it is the case.
|
8528
8548
|
experimental type SecureContextType extends string
|
8529
8549
|
enum
|
@@ -9291,15 +9311,16 @@ domain Page
|
|
9291
9311
|
# Recommendation for manifest's id attribute to match current id computed from start_url
|
9292
9312
|
optional string recommendedId
|
9293
9313
|
|
9294
|
-
experimental command
|
9314
|
+
experimental command getAdScriptAncestry
|
9295
9315
|
parameters
|
9296
9316
|
FrameId frameId
|
9297
9317
|
returns
|
9298
9318
|
# The ancestry chain of ad script identifiers leading to this frame's
|
9299
|
-
# creation,
|
9319
|
+
# creation, along with the root script's filterlist rule. The ancestry
|
9320
|
+
# chain is ordered from the most immediate script (in the frame creation
|
9300
9321
|
# stack) to more distant ancestors (that created the immediately preceding
|
9301
9322
|
# script). Only sent if frame is labelled as an ad and ids are available.
|
9302
|
-
|
9323
|
+
optional AdScriptAncestry adScriptAncestry
|
9303
9324
|
|
9304
9325
|
# Returns present frame tree structure.
|
9305
9326
|
command getFrameTree
|
@@ -2917,6 +2917,13 @@ export namespace ProtocolMapping {
|
|
2917
2917
|
paramsType: [Protocol.Emulation.SetEmulatedVisionDeficiencyRequest];
|
2918
2918
|
returnType: void;
|
2919
2919
|
};
|
2920
|
+
/**
|
2921
|
+
* Emulates the given OS text scale.
|
2922
|
+
*/
|
2923
|
+
'Emulation.setEmulatedOSTextScale': {
|
2924
|
+
paramsType: [Protocol.Emulation.SetEmulatedOSTextScaleRequest?];
|
2925
|
+
returnType: void;
|
2926
|
+
};
|
2920
2927
|
/**
|
2921
2928
|
* Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
2922
2929
|
* accuracy emulates position unavailable.
|
@@ -4052,9 +4059,9 @@ export namespace ProtocolMapping {
|
|
4052
4059
|
paramsType: [];
|
4053
4060
|
returnType: Protocol.Page.GetAppIdResponse;
|
4054
4061
|
};
|
4055
|
-
'Page.
|
4056
|
-
paramsType: [Protocol.Page.
|
4057
|
-
returnType: Protocol.Page.
|
4062
|
+
'Page.getAdScriptAncestry': {
|
4063
|
+
paramsType: [Protocol.Page.GetAdScriptAncestryRequest];
|
4064
|
+
returnType: Protocol.Page.GetAdScriptAncestryResponse;
|
4058
4065
|
};
|
4059
4066
|
/**
|
4060
4067
|
* Returns present frame tree structure.
|
@@ -1961,6 +1961,11 @@ export namespace ProtocolProxyApi {
|
|
1961
1961
|
*/
|
1962
1962
|
setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<void>;
|
1963
1963
|
|
1964
|
+
/**
|
1965
|
+
* Emulates the given OS text scale.
|
1966
|
+
*/
|
1967
|
+
setEmulatedOSTextScale(params: Protocol.Emulation.SetEmulatedOSTextScaleRequest): Promise<void>;
|
1968
|
+
|
1964
1969
|
/**
|
1965
1970
|
* Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
1966
1971
|
* accuracy emulates position unavailable.
|
@@ -3101,7 +3106,7 @@ export namespace ProtocolProxyApi {
|
|
3101
3106
|
*/
|
3102
3107
|
getAppId(): Promise<Protocol.Page.GetAppIdResponse>;
|
3103
3108
|
|
3104
|
-
|
3109
|
+
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<Protocol.Page.GetAdScriptAncestryResponse>;
|
3105
3110
|
|
3106
3111
|
/**
|
3107
3112
|
* Returns present frame tree structure.
|
@@ -2085,6 +2085,11 @@ export namespace ProtocolTestsProxyApi {
|
|
2085
2085
|
*/
|
2086
2086
|
setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2087
2087
|
|
2088
|
+
/**
|
2089
|
+
* Emulates the given OS text scale.
|
2090
|
+
*/
|
2091
|
+
setEmulatedOSTextScale(params: Protocol.Emulation.SetEmulatedOSTextScaleRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2092
|
+
|
2088
2093
|
/**
|
2089
2094
|
* Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
2090
2095
|
* accuracy emulates position unavailable.
|
@@ -3337,7 +3342,7 @@ export namespace ProtocolTestsProxyApi {
|
|
3337
3342
|
*/
|
3338
3343
|
getAppId(): Promise<{id: number, result: Protocol.Page.GetAppIdResponse, sessionId: string}>;
|
3339
3344
|
|
3340
|
-
|
3345
|
+
getAdScriptAncestry(params: Protocol.Page.GetAdScriptAncestryRequest): Promise<{id: number, result: Protocol.Page.GetAdScriptAncestryResponse, sessionId: string}>;
|
3341
3346
|
|
3342
3347
|
/**
|
3343
3348
|
* Returns present frame tree structure.
|
package/types/protocol.d.ts
CHANGED
@@ -8788,6 +8788,10 @@ export namespace Protocol {
|
|
8788
8788
|
type: ('none' | 'blurredVision' | 'reducedContrast' | 'achromatopsia' | 'deuteranopia' | 'protanopia' | 'tritanopia');
|
8789
8789
|
}
|
8790
8790
|
|
8791
|
+
export interface SetEmulatedOSTextScaleRequest {
|
8792
|
+
scale?: number;
|
8793
|
+
}
|
8794
|
+
|
8791
8795
|
export interface SetGeolocationOverrideRequest {
|
8792
8796
|
/**
|
8793
8797
|
* Mock latitude
|
@@ -13985,21 +13989,42 @@ export namespace Protocol {
|
|
13985
13989
|
}
|
13986
13990
|
|
13987
13991
|
/**
|
13988
|
-
* Identifies the
|
13989
|
-
*
|
13992
|
+
* Identifies the script which caused a script or frame to be labelled as an
|
13993
|
+
* ad.
|
13990
13994
|
*/
|
13991
13995
|
export interface AdScriptId {
|
13992
13996
|
/**
|
13993
|
-
* Script Id of the
|
13994
|
-
*
|
13997
|
+
* Script Id of the script which caused a script or frame to be labelled as
|
13998
|
+
* an ad.
|
13995
13999
|
*/
|
13996
14000
|
scriptId: Runtime.ScriptId;
|
13997
14001
|
/**
|
13998
|
-
* Id of
|
14002
|
+
* Id of scriptId's debugger.
|
13999
14003
|
*/
|
14000
14004
|
debuggerId: Runtime.UniqueDebuggerId;
|
14001
14005
|
}
|
14002
14006
|
|
14007
|
+
/**
|
14008
|
+
* Encapsulates the script ancestry and the root script filterlist rule that
|
14009
|
+
* caused the frame to be labelled as an ad. Only created when `ancestryChain`
|
14010
|
+
* is not empty.
|
14011
|
+
*/
|
14012
|
+
export interface AdScriptAncestry {
|
14013
|
+
/**
|
14014
|
+
* A chain of `AdScriptId`s representing the ancestry of an ad script that
|
14015
|
+
* led to the creation of a frame. The chain is ordered from the script
|
14016
|
+
* itself (lower level) up to its root ancestor that was flagged by
|
14017
|
+
* filterlist.
|
14018
|
+
*/
|
14019
|
+
ancestryChain: AdScriptId[];
|
14020
|
+
/**
|
14021
|
+
* The filterlist rule that caused the root (last) script in
|
14022
|
+
* `ancestryChain` to be ad-tagged. Only populated if the rule is
|
14023
|
+
* available.
|
14024
|
+
*/
|
14025
|
+
rootScriptFilterlistRule?: string;
|
14026
|
+
}
|
14027
|
+
|
14003
14028
|
/**
|
14004
14029
|
* Indicates whether the frame is a secure context and why it is the case.
|
14005
14030
|
*/
|
@@ -14903,18 +14928,19 @@ export namespace Protocol {
|
|
14903
14928
|
recommendedId?: string;
|
14904
14929
|
}
|
14905
14930
|
|
14906
|
-
export interface
|
14931
|
+
export interface GetAdScriptAncestryRequest {
|
14907
14932
|
frameId: FrameId;
|
14908
14933
|
}
|
14909
14934
|
|
14910
|
-
export interface
|
14935
|
+
export interface GetAdScriptAncestryResponse {
|
14911
14936
|
/**
|
14912
14937
|
* The ancestry chain of ad script identifiers leading to this frame's
|
14913
|
-
* creation,
|
14938
|
+
* creation, along with the root script's filterlist rule. The ancestry
|
14939
|
+
* chain is ordered from the most immediate script (in the frame creation
|
14914
14940
|
* stack) to more distant ancestors (that created the immediately preceding
|
14915
14941
|
* script). Only sent if frame is labelled as an ad and ids are available.
|
14916
14942
|
*/
|
14917
|
-
|
14943
|
+
adScriptAncestry?: AdScriptAncestry;
|
14918
14944
|
}
|
14919
14945
|
|
14920
14946
|
export interface GetFrameTreeResponse {
|