devtools-protocol 0.0.1596832 → 0.0.1601035
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.
- package/json/browser_protocol.json +47 -85
- package/package.json +1 -1
- package/pdl/domains/Audits.pdl +1 -25
- package/pdl/domains/Network.pdl +26 -0
- package/pdl/domains/Page.pdl +1 -26
- package/pdl/domains/SmartCardEmulation.pdl +405 -0
- package/pdl/domains/WebMCP.pdl +53 -0
- package/types/protocol.d.ts +44 -79
|
@@ -2229,49 +2229,6 @@
|
|
|
2229
2229
|
}
|
|
2230
2230
|
]
|
|
2231
2231
|
},
|
|
2232
|
-
{
|
|
2233
|
-
"id": "AdScriptIdentifier",
|
|
2234
|
-
"description": "Metadata about the ad script that was on the stack that caused the current\nscript in the `AdAncestry` to be considered ad related.",
|
|
2235
|
-
"type": "object",
|
|
2236
|
-
"properties": [
|
|
2237
|
-
{
|
|
2238
|
-
"name": "scriptId",
|
|
2239
|
-
"description": "The script's v8 identifier.",
|
|
2240
|
-
"$ref": "Runtime.ScriptId"
|
|
2241
|
-
},
|
|
2242
|
-
{
|
|
2243
|
-
"name": "debuggerId",
|
|
2244
|
-
"description": "v8's debugging id for the v8::Context.",
|
|
2245
|
-
"$ref": "Runtime.UniqueDebuggerId"
|
|
2246
|
-
},
|
|
2247
|
-
{
|
|
2248
|
-
"name": "name",
|
|
2249
|
-
"description": "The script's url (or generated name based on id if inline script).",
|
|
2250
|
-
"type": "string"
|
|
2251
|
-
}
|
|
2252
|
-
]
|
|
2253
|
-
},
|
|
2254
|
-
{
|
|
2255
|
-
"id": "AdAncestry",
|
|
2256
|
-
"description": "Providence about how an ad script was determined to be such. It is an ad\nbecause its url matched a filterlist rule, or because some other ad script\nwas on the stack when this script was loaded.",
|
|
2257
|
-
"type": "object",
|
|
2258
|
-
"properties": [
|
|
2259
|
-
{
|
|
2260
|
-
"name": "adAncestryChain",
|
|
2261
|
-
"description": "The ad-script in the stack when the offending script was loaded. This is\nrecursive down to the root script that was tagged due to the filterlist\nrule.",
|
|
2262
|
-
"type": "array",
|
|
2263
|
-
"items": {
|
|
2264
|
-
"$ref": "AdScriptIdentifier"
|
|
2265
|
-
}
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
"name": "rootScriptFilterlistRule",
|
|
2269
|
-
"description": "The filterlist rule that caused the root (last) script in\n`adAncestry` to be ad-tagged.",
|
|
2270
|
-
"optional": true,
|
|
2271
|
-
"type": "string"
|
|
2272
|
-
}
|
|
2273
|
-
]
|
|
2274
|
-
},
|
|
2275
2232
|
{
|
|
2276
2233
|
"id": "SelectivePermissionsInterventionIssueDetails",
|
|
2277
2234
|
"description": "The issue warns about blocked calls to privacy sensitive APIs via the\nSelective Permissions Intervention.",
|
|
@@ -2285,7 +2242,7 @@
|
|
|
2285
2242
|
{
|
|
2286
2243
|
"name": "adAncestry",
|
|
2287
2244
|
"description": "Why the ad script using the API is considered an ad.",
|
|
2288
|
-
"$ref": "AdAncestry"
|
|
2245
|
+
"$ref": "Network.AdAncestry"
|
|
2289
2246
|
},
|
|
2290
2247
|
{
|
|
2291
2248
|
"name": "stackTrace",
|
|
@@ -17287,6 +17244,51 @@
|
|
|
17287
17244
|
}
|
|
17288
17245
|
]
|
|
17289
17246
|
},
|
|
17247
|
+
{
|
|
17248
|
+
"id": "AdScriptIdentifier",
|
|
17249
|
+
"description": "Identifies the script on the stack that caused a resource or element to be\nlabeled as an ad. For resources, this indicates the context that triggered\nthe fetch. For elements, this indicates the context that caused the element\nto be appended to the DOM.",
|
|
17250
|
+
"experimental": true,
|
|
17251
|
+
"type": "object",
|
|
17252
|
+
"properties": [
|
|
17253
|
+
{
|
|
17254
|
+
"name": "scriptId",
|
|
17255
|
+
"description": "The script's V8 identifier.",
|
|
17256
|
+
"$ref": "Runtime.ScriptId"
|
|
17257
|
+
},
|
|
17258
|
+
{
|
|
17259
|
+
"name": "debuggerId",
|
|
17260
|
+
"description": "V8's debugging ID for the v8::Context.",
|
|
17261
|
+
"$ref": "Runtime.UniqueDebuggerId"
|
|
17262
|
+
},
|
|
17263
|
+
{
|
|
17264
|
+
"name": "name",
|
|
17265
|
+
"description": "The script's url (or generated name based on id if inline script).",
|
|
17266
|
+
"type": "string"
|
|
17267
|
+
}
|
|
17268
|
+
]
|
|
17269
|
+
},
|
|
17270
|
+
{
|
|
17271
|
+
"id": "AdAncestry",
|
|
17272
|
+
"description": "Encapsulates the script ancestry and the root script filter list rule that\ncaused the resource or element to be labeled as an ad.",
|
|
17273
|
+
"experimental": true,
|
|
17274
|
+
"type": "object",
|
|
17275
|
+
"properties": [
|
|
17276
|
+
{
|
|
17277
|
+
"name": "ancestryChain",
|
|
17278
|
+
"description": "A chain of `AdScriptIdentifier`s representing the ancestry of an ad\nscript that led to the creation of a resource or element. The chain is\nordered from the script itself (lowest level) up to its root ancestor\nthat was flagged by a filter list.",
|
|
17279
|
+
"type": "array",
|
|
17280
|
+
"items": {
|
|
17281
|
+
"$ref": "AdScriptIdentifier"
|
|
17282
|
+
}
|
|
17283
|
+
},
|
|
17284
|
+
{
|
|
17285
|
+
"name": "rootScriptFilterlistRule",
|
|
17286
|
+
"description": "The filter list rule that caused the root (last) script in\n`ancestryChain` to be tagged as an ad.",
|
|
17287
|
+
"optional": true,
|
|
17288
|
+
"type": "string"
|
|
17289
|
+
}
|
|
17290
|
+
]
|
|
17291
|
+
},
|
|
17290
17292
|
{
|
|
17291
17293
|
"id": "CrossOriginOpenerPolicyValue",
|
|
17292
17294
|
"experimental": true,
|
|
@@ -21471,46 +21473,6 @@
|
|
|
21471
21473
|
}
|
|
21472
21474
|
]
|
|
21473
21475
|
},
|
|
21474
|
-
{
|
|
21475
|
-
"id": "AdScriptId",
|
|
21476
|
-
"description": "Identifies the script which caused a script or frame to be labelled as an\nad.",
|
|
21477
|
-
"experimental": true,
|
|
21478
|
-
"type": "object",
|
|
21479
|
-
"properties": [
|
|
21480
|
-
{
|
|
21481
|
-
"name": "scriptId",
|
|
21482
|
-
"description": "Script Id of the script which caused a script or frame to be labelled as\nan ad.",
|
|
21483
|
-
"$ref": "Runtime.ScriptId"
|
|
21484
|
-
},
|
|
21485
|
-
{
|
|
21486
|
-
"name": "debuggerId",
|
|
21487
|
-
"description": "Id of scriptId's debugger.",
|
|
21488
|
-
"$ref": "Runtime.UniqueDebuggerId"
|
|
21489
|
-
}
|
|
21490
|
-
]
|
|
21491
|
-
},
|
|
21492
|
-
{
|
|
21493
|
-
"id": "AdScriptAncestry",
|
|
21494
|
-
"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.",
|
|
21495
|
-
"experimental": true,
|
|
21496
|
-
"type": "object",
|
|
21497
|
-
"properties": [
|
|
21498
|
-
{
|
|
21499
|
-
"name": "ancestryChain",
|
|
21500
|
-
"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.",
|
|
21501
|
-
"type": "array",
|
|
21502
|
-
"items": {
|
|
21503
|
-
"$ref": "AdScriptId"
|
|
21504
|
-
}
|
|
21505
|
-
},
|
|
21506
|
-
{
|
|
21507
|
-
"name": "rootScriptFilterlistRule",
|
|
21508
|
-
"description": "The filterlist rule that caused the root (last) script in\n`ancestryChain` to be ad-tagged. Only populated if the rule is\navailable.",
|
|
21509
|
-
"optional": true,
|
|
21510
|
-
"type": "string"
|
|
21511
|
-
}
|
|
21512
|
-
]
|
|
21513
|
-
},
|
|
21514
21476
|
{
|
|
21515
21477
|
"id": "SecureContextType",
|
|
21516
21478
|
"description": "Indicates whether the frame is a secure context and why it is the case.",
|
|
@@ -23448,7 +23410,7 @@
|
|
|
23448
23410
|
"name": "adScriptAncestry",
|
|
23449
23411
|
"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.",
|
|
23450
23412
|
"optional": true,
|
|
23451
|
-
"$ref": "
|
|
23413
|
+
"$ref": "Network.AdAncestry"
|
|
23452
23414
|
}
|
|
23453
23415
|
]
|
|
23454
23416
|
},
|
package/package.json
CHANGED
package/pdl/domains/Audits.pdl
CHANGED
|
@@ -688,30 +688,6 @@ experimental domain Audits
|
|
|
688
688
|
# Used for messages about activation disabled reason
|
|
689
689
|
optional string disableReason
|
|
690
690
|
|
|
691
|
-
# Metadata about the ad script that was on the stack that caused the current
|
|
692
|
-
# script in the `AdAncestry` to be considered ad related.
|
|
693
|
-
type AdScriptIdentifier extends object
|
|
694
|
-
properties
|
|
695
|
-
# The script's v8 identifier.
|
|
696
|
-
Runtime.ScriptId scriptId
|
|
697
|
-
# v8's debugging id for the v8::Context.
|
|
698
|
-
Runtime.UniqueDebuggerId debuggerId
|
|
699
|
-
# The script's url (or generated name based on id if inline script).
|
|
700
|
-
string name
|
|
701
|
-
|
|
702
|
-
# Providence about how an ad script was determined to be such. It is an ad
|
|
703
|
-
# because its url matched a filterlist rule, or because some other ad script
|
|
704
|
-
# was on the stack when this script was loaded.
|
|
705
|
-
type AdAncestry extends object
|
|
706
|
-
properties
|
|
707
|
-
# The ad-script in the stack when the offending script was loaded. This is
|
|
708
|
-
# recursive down to the root script that was tagged due to the filterlist
|
|
709
|
-
# rule.
|
|
710
|
-
array of AdScriptIdentifier adAncestryChain
|
|
711
|
-
# The filterlist rule that caused the root (last) script in
|
|
712
|
-
# `adAncestry` to be ad-tagged.
|
|
713
|
-
optional string rootScriptFilterlistRule
|
|
714
|
-
|
|
715
691
|
# The issue warns about blocked calls to privacy sensitive APIs via the
|
|
716
692
|
# Selective Permissions Intervention.
|
|
717
693
|
type SelectivePermissionsInterventionIssueDetails extends object
|
|
@@ -719,7 +695,7 @@ experimental domain Audits
|
|
|
719
695
|
# Which API was intervened on.
|
|
720
696
|
string apiName
|
|
721
697
|
# Why the ad script using the API is considered an ad.
|
|
722
|
-
AdAncestry adAncestry
|
|
698
|
+
Network.AdAncestry adAncestry
|
|
723
699
|
# The stack trace at the time of the intervention.
|
|
724
700
|
optional Runtime.StackTrace stackTrace
|
|
725
701
|
|
package/pdl/domains/Network.pdl
CHANGED
|
@@ -1799,6 +1799,32 @@ domain Network
|
|
|
1799
1799
|
IPAddressSpace initiatorIPAddressSpace
|
|
1800
1800
|
LocalNetworkAccessRequestPolicy localNetworkAccessRequestPolicy
|
|
1801
1801
|
|
|
1802
|
+
# Identifies the script on the stack that caused a resource or element to be
|
|
1803
|
+
# labeled as an ad. For resources, this indicates the context that triggered
|
|
1804
|
+
# the fetch. For elements, this indicates the context that caused the element
|
|
1805
|
+
# to be appended to the DOM.
|
|
1806
|
+
experimental type AdScriptIdentifier extends object
|
|
1807
|
+
properties
|
|
1808
|
+
# The script's V8 identifier.
|
|
1809
|
+
Runtime.ScriptId scriptId
|
|
1810
|
+
# V8's debugging ID for the v8::Context.
|
|
1811
|
+
Runtime.UniqueDebuggerId debuggerId
|
|
1812
|
+
# The script's url (or generated name based on id if inline script).
|
|
1813
|
+
string name
|
|
1814
|
+
|
|
1815
|
+
# Encapsulates the script ancestry and the root script filter list rule that
|
|
1816
|
+
# caused the resource or element to be labeled as an ad.
|
|
1817
|
+
experimental type AdAncestry extends object
|
|
1818
|
+
properties
|
|
1819
|
+
# A chain of `AdScriptIdentifier`s representing the ancestry of an ad
|
|
1820
|
+
# script that led to the creation of a resource or element. The chain is
|
|
1821
|
+
# ordered from the script itself (lowest level) up to its root ancestor
|
|
1822
|
+
# that was flagged by a filter list.
|
|
1823
|
+
array of AdScriptIdentifier ancestryChain
|
|
1824
|
+
# The filter list rule that caused the root (last) script in
|
|
1825
|
+
# `ancestryChain` to be tagged as an ad.
|
|
1826
|
+
optional string rootScriptFilterlistRule
|
|
1827
|
+
|
|
1802
1828
|
# Fired when additional information about a requestWillBeSent event is available from the
|
|
1803
1829
|
# network stack. Not every requestWillBeSent event will have an additional
|
|
1804
1830
|
# requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent
|
package/pdl/domains/Page.pdl
CHANGED
|
@@ -36,31 +36,6 @@ domain Page
|
|
|
36
36
|
AdFrameType adFrameType
|
|
37
37
|
optional array of AdFrameExplanation explanations
|
|
38
38
|
|
|
39
|
-
# Identifies the script which caused a script or frame to be labelled as an
|
|
40
|
-
# ad.
|
|
41
|
-
experimental type AdScriptId extends object
|
|
42
|
-
properties
|
|
43
|
-
# Script Id of the script which caused a script or frame to be labelled as
|
|
44
|
-
# an ad.
|
|
45
|
-
Runtime.ScriptId scriptId
|
|
46
|
-
# Id of scriptId's debugger.
|
|
47
|
-
Runtime.UniqueDebuggerId debuggerId
|
|
48
|
-
|
|
49
|
-
# Encapsulates the script ancestry and the root script filterlist rule that
|
|
50
|
-
# caused the frame to be labelled as an ad. Only created when `ancestryChain`
|
|
51
|
-
# is not empty.
|
|
52
|
-
experimental type AdScriptAncestry extends object
|
|
53
|
-
properties
|
|
54
|
-
# A chain of `AdScriptId`s representing the ancestry of an ad script that
|
|
55
|
-
# led to the creation of a frame. The chain is ordered from the script
|
|
56
|
-
# itself (lower level) up to its root ancestor that was flagged by
|
|
57
|
-
# filterlist.
|
|
58
|
-
array of AdScriptId ancestryChain
|
|
59
|
-
# The filterlist rule that caused the root (last) script in
|
|
60
|
-
# `ancestryChain` to be ad-tagged. Only populated if the rule is
|
|
61
|
-
# available.
|
|
62
|
-
optional string rootScriptFilterlistRule
|
|
63
|
-
|
|
64
39
|
# Indicates whether the frame is a secure context and why it is the case.
|
|
65
40
|
experimental type SecureContextType extends string
|
|
66
41
|
enum
|
|
@@ -843,7 +818,7 @@ domain Page
|
|
|
843
818
|
# chain is ordered from the most immediate script (in the frame creation
|
|
844
819
|
# stack) to more distant ancestors (that created the immediately preceding
|
|
845
820
|
# script). Only sent if frame is labelled as an ad and ids are available.
|
|
846
|
-
optional
|
|
821
|
+
optional Network.AdAncestry adScriptAncestry
|
|
847
822
|
|
|
848
823
|
# Returns present frame tree structure.
|
|
849
824
|
command getFrameTree
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
# Copyright 2025 The Chromium Authors
|
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
# found in the LICENSE file.
|
|
4
|
+
#
|
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
|
6
|
+
# This domain allows to emulate smart card readers and cards,
|
|
7
|
+
# bypassing the need for physical hardware.
|
|
8
|
+
|
|
9
|
+
experimental domain SmartCardEmulation
|
|
10
|
+
|
|
11
|
+
# Indicates the PC/SC error code.
|
|
12
|
+
#
|
|
13
|
+
# This maps to:
|
|
14
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__ErrorCodes.html
|
|
15
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values
|
|
16
|
+
type ResultCode extends string
|
|
17
|
+
enum
|
|
18
|
+
success
|
|
19
|
+
removed-card
|
|
20
|
+
reset-card
|
|
21
|
+
unpowered-card
|
|
22
|
+
unresponsive-card
|
|
23
|
+
unsupported-card
|
|
24
|
+
reader-unavailable
|
|
25
|
+
sharing-violation
|
|
26
|
+
not-transacted
|
|
27
|
+
no-smartcard
|
|
28
|
+
proto-mismatch
|
|
29
|
+
system-cancelled
|
|
30
|
+
not-ready
|
|
31
|
+
cancelled
|
|
32
|
+
insufficient-buffer
|
|
33
|
+
invalid-handle
|
|
34
|
+
invalid-parameter
|
|
35
|
+
invalid-value
|
|
36
|
+
no-memory
|
|
37
|
+
timeout
|
|
38
|
+
unknown-reader
|
|
39
|
+
unsupported-feature
|
|
40
|
+
no-readers-available
|
|
41
|
+
service-stopped
|
|
42
|
+
no-service
|
|
43
|
+
comm-error
|
|
44
|
+
internal-error
|
|
45
|
+
server-too-busy
|
|
46
|
+
unexpected
|
|
47
|
+
shutdown
|
|
48
|
+
|
|
49
|
+
# Maps to SCARD_E_UNKNOWN_CARD.
|
|
50
|
+
# TODO(crbug.com/472114998): Rename Mojo's kUnknownError to kUnknownCard to match.
|
|
51
|
+
unknown-card
|
|
52
|
+
|
|
53
|
+
# Error code that is not mapped in this enum.
|
|
54
|
+
unknown
|
|
55
|
+
|
|
56
|
+
# Maps to the |SCARD_SHARE_*| values.
|
|
57
|
+
type ShareMode extends string
|
|
58
|
+
enum
|
|
59
|
+
shared
|
|
60
|
+
exclusive
|
|
61
|
+
direct
|
|
62
|
+
|
|
63
|
+
# Indicates what the reader should do with the card.
|
|
64
|
+
type Disposition extends string
|
|
65
|
+
enum
|
|
66
|
+
leave-card
|
|
67
|
+
reset-card
|
|
68
|
+
unpower-card
|
|
69
|
+
eject-card
|
|
70
|
+
|
|
71
|
+
# Maps to |SCARD_*| connection state values.
|
|
72
|
+
type ConnectionState extends string
|
|
73
|
+
enum
|
|
74
|
+
absent
|
|
75
|
+
present
|
|
76
|
+
swallowed
|
|
77
|
+
powered
|
|
78
|
+
negotiable
|
|
79
|
+
specific
|
|
80
|
+
|
|
81
|
+
# Maps to the |SCARD_STATE_*| flags.
|
|
82
|
+
type ReaderStateFlags extends object
|
|
83
|
+
properties
|
|
84
|
+
optional boolean unaware
|
|
85
|
+
optional boolean ignore
|
|
86
|
+
optional boolean changed
|
|
87
|
+
optional boolean unknown
|
|
88
|
+
optional boolean unavailable
|
|
89
|
+
optional boolean empty
|
|
90
|
+
optional boolean present
|
|
91
|
+
optional boolean exclusive
|
|
92
|
+
optional boolean inuse
|
|
93
|
+
optional boolean mute
|
|
94
|
+
optional boolean unpowered
|
|
95
|
+
|
|
96
|
+
# Maps to the |SCARD_PROTOCOL_*| flags.
|
|
97
|
+
type ProtocolSet extends object
|
|
98
|
+
properties
|
|
99
|
+
optional boolean t0
|
|
100
|
+
optional boolean t1
|
|
101
|
+
optional boolean raw
|
|
102
|
+
|
|
103
|
+
# Maps to the |SCARD_PROTOCOL_*| values.
|
|
104
|
+
type Protocol extends string
|
|
105
|
+
enum
|
|
106
|
+
t0
|
|
107
|
+
t1
|
|
108
|
+
raw
|
|
109
|
+
|
|
110
|
+
type ReaderStateIn extends object
|
|
111
|
+
properties
|
|
112
|
+
string reader
|
|
113
|
+
ReaderStateFlags currentState
|
|
114
|
+
integer currentInsertionCount
|
|
115
|
+
|
|
116
|
+
type ReaderStateOut extends object
|
|
117
|
+
properties
|
|
118
|
+
string reader
|
|
119
|
+
ReaderStateFlags eventState
|
|
120
|
+
integer eventCount
|
|
121
|
+
binary atr
|
|
122
|
+
|
|
123
|
+
# Enables the |SmartCardEmulation| domain.
|
|
124
|
+
command enable
|
|
125
|
+
|
|
126
|
+
# Disables the |SmartCardEmulation| domain.
|
|
127
|
+
command disable
|
|
128
|
+
|
|
129
|
+
# Reports the successful result of a |SCardEstablishContext| call.
|
|
130
|
+
#
|
|
131
|
+
# This maps to:
|
|
132
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
133
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
134
|
+
command reportEstablishContextResult
|
|
135
|
+
parameters
|
|
136
|
+
string requestId
|
|
137
|
+
integer contextId
|
|
138
|
+
|
|
139
|
+
# Reports the successful result of a |SCardReleaseContext| call.
|
|
140
|
+
#
|
|
141
|
+
# This maps to:
|
|
142
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
143
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
144
|
+
command reportReleaseContextResult
|
|
145
|
+
parameters
|
|
146
|
+
string requestId
|
|
147
|
+
|
|
148
|
+
# Reports the successful result of a |SCardListReaders| call.
|
|
149
|
+
#
|
|
150
|
+
# This maps to:
|
|
151
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
152
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
153
|
+
command reportListReadersResult
|
|
154
|
+
parameters
|
|
155
|
+
string requestId
|
|
156
|
+
array of string readers
|
|
157
|
+
|
|
158
|
+
# Reports the successful result of a |SCardGetStatusChange| call.
|
|
159
|
+
#
|
|
160
|
+
# This maps to:
|
|
161
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
162
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
163
|
+
command reportGetStatusChangeResult
|
|
164
|
+
parameters
|
|
165
|
+
string requestId
|
|
166
|
+
array of ReaderStateOut readerStates
|
|
167
|
+
|
|
168
|
+
# Reports the result of a |SCardBeginTransaction| call.
|
|
169
|
+
# On success, this creates a new transaction object.
|
|
170
|
+
#
|
|
171
|
+
# This maps to:
|
|
172
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
173
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
174
|
+
command reportBeginTransactionResult
|
|
175
|
+
parameters
|
|
176
|
+
string requestId
|
|
177
|
+
integer handle
|
|
178
|
+
|
|
179
|
+
# Reports the successful result of a call that returns only a result code.
|
|
180
|
+
# Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|, |SCardEndTransaction|.
|
|
181
|
+
#
|
|
182
|
+
# This maps to:
|
|
183
|
+
# 1. SCardCancel
|
|
184
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
185
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
186
|
+
#
|
|
187
|
+
# 2. SCardDisconnect
|
|
188
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
189
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
190
|
+
#
|
|
191
|
+
# 3. SCardSetAttrib
|
|
192
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
193
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
194
|
+
#
|
|
195
|
+
# 4. SCardEndTransaction
|
|
196
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
197
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
198
|
+
command reportPlainResult
|
|
199
|
+
parameters
|
|
200
|
+
string requestId
|
|
201
|
+
|
|
202
|
+
# Reports the successful result of a |SCardConnect| call.
|
|
203
|
+
#
|
|
204
|
+
# This maps to:
|
|
205
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
206
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
207
|
+
command reportConnectResult
|
|
208
|
+
parameters
|
|
209
|
+
string requestId
|
|
210
|
+
integer handle
|
|
211
|
+
optional Protocol activeProtocol
|
|
212
|
+
|
|
213
|
+
# Reports the successful result of a call that sends back data on success.
|
|
214
|
+
# Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|.
|
|
215
|
+
#
|
|
216
|
+
# This maps to:
|
|
217
|
+
# 1. SCardTransmit
|
|
218
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
219
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
220
|
+
#
|
|
221
|
+
# 2. SCardControl
|
|
222
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
223
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
224
|
+
#
|
|
225
|
+
# 3. SCardGetAttrib
|
|
226
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
227
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
228
|
+
command reportDataResult
|
|
229
|
+
parameters
|
|
230
|
+
string requestId
|
|
231
|
+
binary data
|
|
232
|
+
|
|
233
|
+
# Reports the successful result of a |SCardStatus| call.
|
|
234
|
+
#
|
|
235
|
+
# This maps to:
|
|
236
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
237
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
238
|
+
command reportStatusResult
|
|
239
|
+
parameters
|
|
240
|
+
string requestId
|
|
241
|
+
string readerName
|
|
242
|
+
ConnectionState state
|
|
243
|
+
binary atr
|
|
244
|
+
optional Protocol protocol
|
|
245
|
+
|
|
246
|
+
# Reports an error result for the given request.
|
|
247
|
+
command reportError
|
|
248
|
+
parameters
|
|
249
|
+
string requestId
|
|
250
|
+
ResultCode resultCode
|
|
251
|
+
|
|
252
|
+
# Fired when |SCardEstablishContext| is called.
|
|
253
|
+
#
|
|
254
|
+
# This maps to:
|
|
255
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67
|
|
256
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext
|
|
257
|
+
event establishContextRequested
|
|
258
|
+
parameters
|
|
259
|
+
string requestId
|
|
260
|
+
|
|
261
|
+
# Fired when |SCardReleaseContext| is called.
|
|
262
|
+
#
|
|
263
|
+
# This maps to:
|
|
264
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934
|
|
265
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext
|
|
266
|
+
event releaseContextRequested
|
|
267
|
+
parameters
|
|
268
|
+
string requestId
|
|
269
|
+
integer contextId
|
|
270
|
+
|
|
271
|
+
# Fired when |SCardListReaders| is called.
|
|
272
|
+
#
|
|
273
|
+
# This maps to:
|
|
274
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9
|
|
275
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa
|
|
276
|
+
event listReadersRequested
|
|
277
|
+
parameters
|
|
278
|
+
string requestId
|
|
279
|
+
integer contextId
|
|
280
|
+
|
|
281
|
+
# Fired when |SCardGetStatusChange| is called. Timeout is specified in milliseconds.
|
|
282
|
+
#
|
|
283
|
+
# This maps to:
|
|
284
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24
|
|
285
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea
|
|
286
|
+
event getStatusChangeRequested
|
|
287
|
+
parameters
|
|
288
|
+
string requestId
|
|
289
|
+
integer contextId
|
|
290
|
+
array of ReaderStateIn readerStates
|
|
291
|
+
|
|
292
|
+
# in milliseconds, if absent, it means "infinite"
|
|
293
|
+
optional integer timeout
|
|
294
|
+
|
|
295
|
+
# Fired when |SCardCancel| is called.
|
|
296
|
+
#
|
|
297
|
+
# This maps to:
|
|
298
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6
|
|
299
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel
|
|
300
|
+
event cancelRequested
|
|
301
|
+
parameters
|
|
302
|
+
string requestId
|
|
303
|
+
integer contextId
|
|
304
|
+
|
|
305
|
+
# Fired when |SCardConnect| is called.
|
|
306
|
+
#
|
|
307
|
+
# This maps to:
|
|
308
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5
|
|
309
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta
|
|
310
|
+
event connectRequested
|
|
311
|
+
parameters
|
|
312
|
+
string requestId
|
|
313
|
+
integer contextId
|
|
314
|
+
string reader
|
|
315
|
+
ShareMode shareMode
|
|
316
|
+
ProtocolSet preferredProtocols
|
|
317
|
+
|
|
318
|
+
# Fired when |SCardDisconnect| is called.
|
|
319
|
+
#
|
|
320
|
+
# This maps to:
|
|
321
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a
|
|
322
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect
|
|
323
|
+
event disconnectRequested
|
|
324
|
+
parameters
|
|
325
|
+
string requestId
|
|
326
|
+
integer handle
|
|
327
|
+
Disposition disposition
|
|
328
|
+
|
|
329
|
+
# Fired when |SCardTransmit| is called.
|
|
330
|
+
#
|
|
331
|
+
# This maps to:
|
|
332
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99
|
|
333
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit
|
|
334
|
+
event transmitRequested
|
|
335
|
+
parameters
|
|
336
|
+
string requestId
|
|
337
|
+
integer handle
|
|
338
|
+
binary data
|
|
339
|
+
optional Protocol protocol
|
|
340
|
+
|
|
341
|
+
# Fired when |SCardControl| is called.
|
|
342
|
+
#
|
|
343
|
+
# This maps to:
|
|
344
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f
|
|
345
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol
|
|
346
|
+
event controlRequested
|
|
347
|
+
parameters
|
|
348
|
+
string requestId
|
|
349
|
+
integer handle
|
|
350
|
+
integer controlCode
|
|
351
|
+
binary data
|
|
352
|
+
|
|
353
|
+
# Fired when |SCardGetAttrib| is called.
|
|
354
|
+
#
|
|
355
|
+
# This maps to:
|
|
356
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602
|
|
357
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib
|
|
358
|
+
event getAttribRequested
|
|
359
|
+
parameters
|
|
360
|
+
string requestId
|
|
361
|
+
integer handle
|
|
362
|
+
integer attribId
|
|
363
|
+
|
|
364
|
+
# Fired when |SCardSetAttrib| is called.
|
|
365
|
+
#
|
|
366
|
+
# This maps to:
|
|
367
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f
|
|
368
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib
|
|
369
|
+
event setAttribRequested
|
|
370
|
+
parameters
|
|
371
|
+
string requestId
|
|
372
|
+
integer handle
|
|
373
|
+
integer attribId
|
|
374
|
+
binary data
|
|
375
|
+
|
|
376
|
+
# Fired when |SCardStatus| is called.
|
|
377
|
+
#
|
|
378
|
+
# This maps to:
|
|
379
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382
|
|
380
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa
|
|
381
|
+
event statusRequested
|
|
382
|
+
parameters
|
|
383
|
+
string requestId
|
|
384
|
+
integer handle
|
|
385
|
+
|
|
386
|
+
# Fired when |SCardBeginTransaction| is called.
|
|
387
|
+
#
|
|
388
|
+
# This maps to:
|
|
389
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861
|
|
390
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction
|
|
391
|
+
event beginTransactionRequested
|
|
392
|
+
parameters
|
|
393
|
+
string requestId
|
|
394
|
+
integer handle
|
|
395
|
+
|
|
396
|
+
# Fired when |SCardEndTransaction| is called.
|
|
397
|
+
#
|
|
398
|
+
# This maps to:
|
|
399
|
+
# PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b
|
|
400
|
+
# Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction
|
|
401
|
+
event endTransactionRequested
|
|
402
|
+
parameters
|
|
403
|
+
string requestId
|
|
404
|
+
integer handle
|
|
405
|
+
Disposition disposition
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright 2026 The Chromium Authors
|
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
# found in the LICENSE file.
|
|
4
|
+
#
|
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
|
6
|
+
|
|
7
|
+
experimental domain WebMCP
|
|
8
|
+
depends on Runtime
|
|
9
|
+
depends on Page
|
|
10
|
+
depends on DOM
|
|
11
|
+
|
|
12
|
+
# Tool annotations
|
|
13
|
+
type Annotation extends object
|
|
14
|
+
properties
|
|
15
|
+
# A hint indicating that the tool does not modify any state.
|
|
16
|
+
optional boolean readOnly
|
|
17
|
+
# If the declarative tool was declared with the autosubmit attribute.
|
|
18
|
+
optional boolean autosubmit
|
|
19
|
+
|
|
20
|
+
# Definition of a tool that can be invoked.
|
|
21
|
+
type Tool extends object
|
|
22
|
+
properties
|
|
23
|
+
# Tool name.
|
|
24
|
+
string name
|
|
25
|
+
# Tool description.
|
|
26
|
+
string description
|
|
27
|
+
# Schema for the tool's input parameters.
|
|
28
|
+
optional object inputSchema
|
|
29
|
+
# Optional annotations for the tool.
|
|
30
|
+
optional Annotation annotations
|
|
31
|
+
# Frame identifier associated with the tool registration.
|
|
32
|
+
Page.FrameId frameId
|
|
33
|
+
# Optional node ID for declarative tools.
|
|
34
|
+
optional DOM.BackendNodeId backendNodeId
|
|
35
|
+
# The stack trace at the time of the registration.
|
|
36
|
+
optional Runtime.StackTrace stackTrace
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for
|
|
40
|
+
# all currently registered tools.
|
|
41
|
+
command enable
|
|
42
|
+
|
|
43
|
+
# Event fired when new tools are added.
|
|
44
|
+
event toolsAdded
|
|
45
|
+
parameters
|
|
46
|
+
# Array of tools that were added.
|
|
47
|
+
array of Tool tools
|
|
48
|
+
|
|
49
|
+
# Event fired when tools are removed.
|
|
50
|
+
event toolsRemoved
|
|
51
|
+
parameters
|
|
52
|
+
# Array of tools that were removed.
|
|
53
|
+
array of Tool tools
|
package/types/protocol.d.ts
CHANGED
|
@@ -3926,44 +3926,6 @@ export namespace Protocol {
|
|
|
3926
3926
|
disableReason?: string;
|
|
3927
3927
|
}
|
|
3928
3928
|
|
|
3929
|
-
/**
|
|
3930
|
-
* Metadata about the ad script that was on the stack that caused the current
|
|
3931
|
-
* script in the `AdAncestry` to be considered ad related.
|
|
3932
|
-
*/
|
|
3933
|
-
export interface AdScriptIdentifier {
|
|
3934
|
-
/**
|
|
3935
|
-
* The script's v8 identifier.
|
|
3936
|
-
*/
|
|
3937
|
-
scriptId: Runtime.ScriptId;
|
|
3938
|
-
/**
|
|
3939
|
-
* v8's debugging id for the v8::Context.
|
|
3940
|
-
*/
|
|
3941
|
-
debuggerId: Runtime.UniqueDebuggerId;
|
|
3942
|
-
/**
|
|
3943
|
-
* The script's url (or generated name based on id if inline script).
|
|
3944
|
-
*/
|
|
3945
|
-
name: string;
|
|
3946
|
-
}
|
|
3947
|
-
|
|
3948
|
-
/**
|
|
3949
|
-
* Providence about how an ad script was determined to be such. It is an ad
|
|
3950
|
-
* because its url matched a filterlist rule, or because some other ad script
|
|
3951
|
-
* was on the stack when this script was loaded.
|
|
3952
|
-
*/
|
|
3953
|
-
export interface AdAncestry {
|
|
3954
|
-
/**
|
|
3955
|
-
* The ad-script in the stack when the offending script was loaded. This is
|
|
3956
|
-
* recursive down to the root script that was tagged due to the filterlist
|
|
3957
|
-
* rule.
|
|
3958
|
-
*/
|
|
3959
|
-
adAncestryChain: AdScriptIdentifier[];
|
|
3960
|
-
/**
|
|
3961
|
-
* The filterlist rule that caused the root (last) script in
|
|
3962
|
-
* `adAncestry` to be ad-tagged.
|
|
3963
|
-
*/
|
|
3964
|
-
rootScriptFilterlistRule?: string;
|
|
3965
|
-
}
|
|
3966
|
-
|
|
3967
3929
|
/**
|
|
3968
3930
|
* The issue warns about blocked calls to privacy sensitive APIs via the
|
|
3969
3931
|
* Selective Permissions Intervention.
|
|
@@ -3976,7 +3938,7 @@ export namespace Protocol {
|
|
|
3976
3938
|
/**
|
|
3977
3939
|
* Why the ad script using the API is considered an ad.
|
|
3978
3940
|
*/
|
|
3979
|
-
adAncestry: AdAncestry;
|
|
3941
|
+
adAncestry: Network.AdAncestry;
|
|
3980
3942
|
/**
|
|
3981
3943
|
* The stack trace at the time of the intervention.
|
|
3982
3944
|
*/
|
|
@@ -13678,6 +13640,48 @@ export namespace Protocol {
|
|
|
13678
13640
|
localNetworkAccessRequestPolicy: LocalNetworkAccessRequestPolicy;
|
|
13679
13641
|
}
|
|
13680
13642
|
|
|
13643
|
+
/**
|
|
13644
|
+
* Identifies the script on the stack that caused a resource or element to be
|
|
13645
|
+
* labeled as an ad. For resources, this indicates the context that triggered
|
|
13646
|
+
* the fetch. For elements, this indicates the context that caused the element
|
|
13647
|
+
* to be appended to the DOM.
|
|
13648
|
+
* @experimental
|
|
13649
|
+
*/
|
|
13650
|
+
export interface AdScriptIdentifier {
|
|
13651
|
+
/**
|
|
13652
|
+
* The script's V8 identifier.
|
|
13653
|
+
*/
|
|
13654
|
+
scriptId: Runtime.ScriptId;
|
|
13655
|
+
/**
|
|
13656
|
+
* V8's debugging ID for the v8::Context.
|
|
13657
|
+
*/
|
|
13658
|
+
debuggerId: Runtime.UniqueDebuggerId;
|
|
13659
|
+
/**
|
|
13660
|
+
* The script's url (or generated name based on id if inline script).
|
|
13661
|
+
*/
|
|
13662
|
+
name: string;
|
|
13663
|
+
}
|
|
13664
|
+
|
|
13665
|
+
/**
|
|
13666
|
+
* Encapsulates the script ancestry and the root script filter list rule that
|
|
13667
|
+
* caused the resource or element to be labeled as an ad.
|
|
13668
|
+
* @experimental
|
|
13669
|
+
*/
|
|
13670
|
+
export interface AdAncestry {
|
|
13671
|
+
/**
|
|
13672
|
+
* A chain of `AdScriptIdentifier`s representing the ancestry of an ad
|
|
13673
|
+
* script that led to the creation of a resource or element. The chain is
|
|
13674
|
+
* ordered from the script itself (lowest level) up to its root ancestor
|
|
13675
|
+
* that was flagged by a filter list.
|
|
13676
|
+
*/
|
|
13677
|
+
ancestryChain: AdScriptIdentifier[];
|
|
13678
|
+
/**
|
|
13679
|
+
* The filter list rule that caused the root (last) script in
|
|
13680
|
+
* `ancestryChain` to be tagged as an ad.
|
|
13681
|
+
*/
|
|
13682
|
+
rootScriptFilterlistRule?: string;
|
|
13683
|
+
}
|
|
13684
|
+
|
|
13681
13685
|
/**
|
|
13682
13686
|
* @experimental
|
|
13683
13687
|
*/
|
|
@@ -16489,45 +16493,6 @@ export namespace Protocol {
|
|
|
16489
16493
|
explanations?: AdFrameExplanation[];
|
|
16490
16494
|
}
|
|
16491
16495
|
|
|
16492
|
-
/**
|
|
16493
|
-
* Identifies the script which caused a script or frame to be labelled as an
|
|
16494
|
-
* ad.
|
|
16495
|
-
* @experimental
|
|
16496
|
-
*/
|
|
16497
|
-
export interface AdScriptId {
|
|
16498
|
-
/**
|
|
16499
|
-
* Script Id of the script which caused a script or frame to be labelled as
|
|
16500
|
-
* an ad.
|
|
16501
|
-
*/
|
|
16502
|
-
scriptId: Runtime.ScriptId;
|
|
16503
|
-
/**
|
|
16504
|
-
* Id of scriptId's debugger.
|
|
16505
|
-
*/
|
|
16506
|
-
debuggerId: Runtime.UniqueDebuggerId;
|
|
16507
|
-
}
|
|
16508
|
-
|
|
16509
|
-
/**
|
|
16510
|
-
* Encapsulates the script ancestry and the root script filterlist rule that
|
|
16511
|
-
* caused the frame to be labelled as an ad. Only created when `ancestryChain`
|
|
16512
|
-
* is not empty.
|
|
16513
|
-
* @experimental
|
|
16514
|
-
*/
|
|
16515
|
-
export interface AdScriptAncestry {
|
|
16516
|
-
/**
|
|
16517
|
-
* A chain of `AdScriptId`s representing the ancestry of an ad script that
|
|
16518
|
-
* led to the creation of a frame. The chain is ordered from the script
|
|
16519
|
-
* itself (lower level) up to its root ancestor that was flagged by
|
|
16520
|
-
* filterlist.
|
|
16521
|
-
*/
|
|
16522
|
-
ancestryChain: AdScriptId[];
|
|
16523
|
-
/**
|
|
16524
|
-
* The filterlist rule that caused the root (last) script in
|
|
16525
|
-
* `ancestryChain` to be ad-tagged. Only populated if the rule is
|
|
16526
|
-
* available.
|
|
16527
|
-
*/
|
|
16528
|
-
rootScriptFilterlistRule?: string;
|
|
16529
|
-
}
|
|
16530
|
-
|
|
16531
16496
|
/**
|
|
16532
16497
|
* Indicates whether the frame is a secure context and why it is the case.
|
|
16533
16498
|
* @experimental
|
|
@@ -17548,7 +17513,7 @@ export namespace Protocol {
|
|
|
17548
17513
|
* stack) to more distant ancestors (that created the immediately preceding
|
|
17549
17514
|
* script). Only sent if frame is labelled as an ad and ids are available.
|
|
17550
17515
|
*/
|
|
17551
|
-
adScriptAncestry?:
|
|
17516
|
+
adScriptAncestry?: Network.AdAncestry;
|
|
17552
17517
|
}
|
|
17553
17518
|
|
|
17554
17519
|
export interface GetFrameTreeResponse {
|