devtools-protocol 0.0.1637485 → 0.0.1638949
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 +76 -3
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +1 -0
- package/pdl/domains/Ads.pdl +33 -0
- package/pdl/domains/Audits.pdl +11 -0
- package/pdl/domains/Preload.pdl +1 -0
- package/pdl/domains/Target.pdl +2 -2
- package/types/protocol-mapping.d.ts +7 -0
- package/types/protocol-proxy-api.d.ts +10 -0
- package/types/protocol-tests-proxy-api.d.ts +10 -0
- package/types/protocol.d.ts +48 -4
|
@@ -598,6 +598,67 @@
|
|
|
598
598
|
}
|
|
599
599
|
]
|
|
600
600
|
},
|
|
601
|
+
{
|
|
602
|
+
"domain": "Ads",
|
|
603
|
+
"description": "A domain for ad-related metrics and data.",
|
|
604
|
+
"experimental": true,
|
|
605
|
+
"dependencies": [
|
|
606
|
+
"Network",
|
|
607
|
+
"Page",
|
|
608
|
+
"Runtime"
|
|
609
|
+
],
|
|
610
|
+
"types": [
|
|
611
|
+
{
|
|
612
|
+
"id": "AdMetrics",
|
|
613
|
+
"description": "Ad metrics for a page.",
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": [
|
|
616
|
+
{
|
|
617
|
+
"name": "viewportAdDensityByArea",
|
|
618
|
+
"description": "The viewport ad density by area, represented as a percentage (an integer\nbetween 0 and 100).",
|
|
619
|
+
"type": "integer"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "averageViewportAdDensityByArea",
|
|
623
|
+
"description": "The time-weighted average of the viewport ad density by area, measured\nacross the duration of the page.",
|
|
624
|
+
"type": "number"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"name": "viewportAdCount",
|
|
628
|
+
"description": "The number of ads currently visible within the viewport.",
|
|
629
|
+
"type": "integer"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "averageViewportAdCount",
|
|
633
|
+
"description": "The time-weighted average of the viewport ad count, measured across the\nduration of the page.",
|
|
634
|
+
"type": "number"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "totalAdCpuTime",
|
|
638
|
+
"description": "The total ad CPU usage, in milliseconds.",
|
|
639
|
+
"type": "number"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "totalAdNetworkBytes",
|
|
643
|
+
"description": "The total ad network bytes.",
|
|
644
|
+
"type": "number"
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"commands": [
|
|
650
|
+
{
|
|
651
|
+
"name": "getAdMetrics",
|
|
652
|
+
"description": "Retrieves ad metrics for the current page.",
|
|
653
|
+
"returns": [
|
|
654
|
+
{
|
|
655
|
+
"name": "metrics",
|
|
656
|
+
"$ref": "AdMetrics"
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
},
|
|
601
662
|
{
|
|
602
663
|
"domain": "Animation",
|
|
603
664
|
"experimental": true,
|
|
@@ -2008,7 +2069,18 @@
|
|
|
2008
2069
|
"RpOriginIsOpaque",
|
|
2009
2070
|
"WellKnownMissingAccountsEndpoint",
|
|
2010
2071
|
"UserLoggedOut",
|
|
2011
|
-
"WellKnownAccountsEndpointCrossOrigin"
|
|
2072
|
+
"WellKnownAccountsEndpointCrossOrigin",
|
|
2073
|
+
"AccountsHttpNotFound",
|
|
2074
|
+
"AccountsNoResponse",
|
|
2075
|
+
"AccountsInvalidResponse",
|
|
2076
|
+
"AccountsInvalidContentType",
|
|
2077
|
+
"AccountsEmptyList",
|
|
2078
|
+
"EmailVerificationWellKnownHttpNotFound",
|
|
2079
|
+
"EmailVerificationWellKnownNoResponse",
|
|
2080
|
+
"EmailVerificationWellKnownInvalidResponse",
|
|
2081
|
+
"EmailVerificationWellKnownInvalidContentType",
|
|
2082
|
+
"JwksHttpNotFound",
|
|
2083
|
+
"JwksInvalidResponse"
|
|
2012
2084
|
]
|
|
2013
2085
|
},
|
|
2014
2086
|
{
|
|
@@ -25625,7 +25697,8 @@
|
|
|
25625
25697
|
"PrefetchProxyNotAvailable",
|
|
25626
25698
|
"PrefetchResponseUsed",
|
|
25627
25699
|
"PrefetchSuccessfulButNotUsed",
|
|
25628
|
-
"PrefetchNotUsedProbeFailed"
|
|
25700
|
+
"PrefetchNotUsedProbeFailed",
|
|
25701
|
+
"PrefetchCancelledOnUserNavigation"
|
|
25629
25702
|
]
|
|
25630
25703
|
},
|
|
25631
25704
|
{
|
|
@@ -29307,7 +29380,7 @@
|
|
|
29307
29380
|
},
|
|
29308
29381
|
{
|
|
29309
29382
|
"name": "panelId",
|
|
29310
|
-
"description": "The id of the panel we want DevTools to open initially. Currently\nsupported panels are elements, console, network, sources, resources
|
|
29383
|
+
"description": "The id of the panel we want DevTools to open initially. Currently\nsupported panels are elements, console, network, sources, resources,\ntimeline, chrome-recorder, heap-profiler, lighthouse, and security.",
|
|
29311
29384
|
"optional": true,
|
|
29312
29385
|
"type": "string"
|
|
29313
29386
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
# A domain for ad-related metrics and data.
|
|
6
|
+
experimental domain Ads
|
|
7
|
+
depends on Network
|
|
8
|
+
depends on Page
|
|
9
|
+
depends on Runtime
|
|
10
|
+
|
|
11
|
+
# Ad metrics for a page.
|
|
12
|
+
type AdMetrics extends object
|
|
13
|
+
properties
|
|
14
|
+
# The viewport ad density by area, represented as a percentage (an integer
|
|
15
|
+
# between 0 and 100).
|
|
16
|
+
integer viewportAdDensityByArea
|
|
17
|
+
# The time-weighted average of the viewport ad density by area, measured
|
|
18
|
+
# across the duration of the page.
|
|
19
|
+
number averageViewportAdDensityByArea
|
|
20
|
+
# The number of ads currently visible within the viewport.
|
|
21
|
+
integer viewportAdCount
|
|
22
|
+
# The time-weighted average of the viewport ad count, measured across the
|
|
23
|
+
# duration of the page.
|
|
24
|
+
number averageViewportAdCount
|
|
25
|
+
# The total ad CPU usage, in milliseconds.
|
|
26
|
+
number totalAdCpuTime
|
|
27
|
+
# The total ad network bytes.
|
|
28
|
+
number totalAdNetworkBytes
|
|
29
|
+
|
|
30
|
+
# Retrieves ad metrics for the current page.
|
|
31
|
+
command getAdMetrics
|
|
32
|
+
returns
|
|
33
|
+
AdMetrics metrics
|
package/pdl/domains/Audits.pdl
CHANGED
|
@@ -592,6 +592,17 @@ experimental domain Audits
|
|
|
592
592
|
WellKnownMissingAccountsEndpoint
|
|
593
593
|
UserLoggedOut
|
|
594
594
|
WellKnownAccountsEndpointCrossOrigin
|
|
595
|
+
AccountsHttpNotFound
|
|
596
|
+
AccountsNoResponse
|
|
597
|
+
AccountsInvalidResponse
|
|
598
|
+
AccountsInvalidContentType
|
|
599
|
+
AccountsEmptyList
|
|
600
|
+
EmailVerificationWellKnownHttpNotFound
|
|
601
|
+
EmailVerificationWellKnownNoResponse
|
|
602
|
+
EmailVerificationWellKnownInvalidResponse
|
|
603
|
+
EmailVerificationWellKnownInvalidContentType
|
|
604
|
+
JwksHttpNotFound
|
|
605
|
+
JwksInvalidResponse
|
|
595
606
|
|
|
596
607
|
# This issue tracks client hints related issues. It's used to deprecate old
|
|
597
608
|
# features, encourage the use of new ones, and provide general guidance.
|
package/pdl/domains/Preload.pdl
CHANGED
|
@@ -258,6 +258,7 @@ experimental domain Preload
|
|
|
258
258
|
# The prefetch finished successfully but was never used.
|
|
259
259
|
PrefetchSuccessfulButNotUsed
|
|
260
260
|
PrefetchNotUsedProbeFailed
|
|
261
|
+
PrefetchCancelledOnUserNavigation
|
|
261
262
|
|
|
262
263
|
# Fired when a prefetch attempt is updated.
|
|
263
264
|
event prefetchStatusUpdated
|
package/pdl/domains/Target.pdl
CHANGED
|
@@ -349,8 +349,8 @@ domain Target
|
|
|
349
349
|
# This can be the page or tab target ID.
|
|
350
350
|
TargetID targetId
|
|
351
351
|
# The id of the panel we want DevTools to open initially. Currently
|
|
352
|
-
# supported panels are elements, console, network, sources, resources
|
|
353
|
-
# and
|
|
352
|
+
# supported panels are elements, console, network, sources, resources,
|
|
353
|
+
# timeline, chrome-recorder, heap-profiler, lighthouse, and security.
|
|
354
354
|
optional string panelId
|
|
355
355
|
returns
|
|
356
356
|
# The targetId of DevTools page target.
|
|
@@ -1779,6 +1779,13 @@ export namespace ProtocolMapping {
|
|
|
1779
1779
|
paramsType: [Protocol.Accessibility.QueryAXTreeRequest?];
|
|
1780
1780
|
returnType: Protocol.Accessibility.QueryAXTreeResponse;
|
|
1781
1781
|
};
|
|
1782
|
+
/**
|
|
1783
|
+
* Retrieves ad metrics for the current page.
|
|
1784
|
+
*/
|
|
1785
|
+
'Ads.getAdMetrics': {
|
|
1786
|
+
paramsType: [];
|
|
1787
|
+
returnType: Protocol.Ads.GetAdMetricsResponse;
|
|
1788
|
+
};
|
|
1782
1789
|
/**
|
|
1783
1790
|
* Disables animation domain notifications.
|
|
1784
1791
|
*/
|
|
@@ -28,6 +28,8 @@ export namespace ProtocolProxyApi {
|
|
|
28
28
|
|
|
29
29
|
Accessibility: AccessibilityApi;
|
|
30
30
|
|
|
31
|
+
Ads: AdsApi;
|
|
32
|
+
|
|
31
33
|
Animation: AnimationApi;
|
|
32
34
|
|
|
33
35
|
Audits: AuditsApi;
|
|
@@ -756,6 +758,14 @@ export namespace ProtocolProxyApi {
|
|
|
756
758
|
|
|
757
759
|
}
|
|
758
760
|
|
|
761
|
+
export interface AdsApi {
|
|
762
|
+
/**
|
|
763
|
+
* Retrieves ad metrics for the current page.
|
|
764
|
+
*/
|
|
765
|
+
getAdMetrics(): Promise<Protocol.Ads.GetAdMetricsResponse>;
|
|
766
|
+
|
|
767
|
+
}
|
|
768
|
+
|
|
759
769
|
export interface AnimationApi {
|
|
760
770
|
/**
|
|
761
771
|
* Disables animation domain notifications.
|
|
@@ -28,6 +28,8 @@ export namespace ProtocolTestsProxyApi {
|
|
|
28
28
|
|
|
29
29
|
Accessibility: AccessibilityApi;
|
|
30
30
|
|
|
31
|
+
Ads: AdsApi;
|
|
32
|
+
|
|
31
33
|
Animation: AnimationApi;
|
|
32
34
|
|
|
33
35
|
Audits: AuditsApi;
|
|
@@ -804,6 +806,14 @@ export namespace ProtocolTestsProxyApi {
|
|
|
804
806
|
|
|
805
807
|
}
|
|
806
808
|
|
|
809
|
+
export interface AdsApi {
|
|
810
|
+
/**
|
|
811
|
+
* Retrieves ad metrics for the current page.
|
|
812
|
+
*/
|
|
813
|
+
getAdMetrics(): Promise<{id: number, result: Protocol.Ads.GetAdMetricsResponse, sessionId: string}>;
|
|
814
|
+
|
|
815
|
+
}
|
|
816
|
+
|
|
807
817
|
export interface AnimationApi {
|
|
808
818
|
/**
|
|
809
819
|
* Disables animation domain notifications.
|
package/types/protocol.d.ts
CHANGED
|
@@ -3118,6 +3118,50 @@ export namespace Protocol {
|
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
3120
|
|
|
3121
|
+
/**
|
|
3122
|
+
* A domain for ad-related metrics and data.
|
|
3123
|
+
* @experimental
|
|
3124
|
+
*/
|
|
3125
|
+
export namespace Ads {
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* Ad metrics for a page.
|
|
3129
|
+
*/
|
|
3130
|
+
export interface AdMetrics {
|
|
3131
|
+
/**
|
|
3132
|
+
* The viewport ad density by area, represented as a percentage (an integer
|
|
3133
|
+
* between 0 and 100).
|
|
3134
|
+
*/
|
|
3135
|
+
viewportAdDensityByArea: integer;
|
|
3136
|
+
/**
|
|
3137
|
+
* The time-weighted average of the viewport ad density by area, measured
|
|
3138
|
+
* across the duration of the page.
|
|
3139
|
+
*/
|
|
3140
|
+
averageViewportAdDensityByArea: number;
|
|
3141
|
+
/**
|
|
3142
|
+
* The number of ads currently visible within the viewport.
|
|
3143
|
+
*/
|
|
3144
|
+
viewportAdCount: integer;
|
|
3145
|
+
/**
|
|
3146
|
+
* The time-weighted average of the viewport ad count, measured across the
|
|
3147
|
+
* duration of the page.
|
|
3148
|
+
*/
|
|
3149
|
+
averageViewportAdCount: number;
|
|
3150
|
+
/**
|
|
3151
|
+
* The total ad CPU usage, in milliseconds.
|
|
3152
|
+
*/
|
|
3153
|
+
totalAdCpuTime: number;
|
|
3154
|
+
/**
|
|
3155
|
+
* The total ad network bytes.
|
|
3156
|
+
*/
|
|
3157
|
+
totalAdNetworkBytes: number;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
export interface GetAdMetricsResponse {
|
|
3161
|
+
metrics: AdMetrics;
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3121
3165
|
/**
|
|
3122
3166
|
* @experimental
|
|
3123
3167
|
*/
|
|
@@ -3793,7 +3837,7 @@ export namespace Protocol {
|
|
|
3793
3837
|
* Should be updated alongside EmailVerificationRequestResult in
|
|
3794
3838
|
* third_party/blink/public/mojom/devtools/inspector_issue.mojom.
|
|
3795
3839
|
*/
|
|
3796
|
-
export type EmailVerificationRequestIssueReason = ('InvalidEmail' | 'DnsFetchFailed' | 'DnsInvalidRecord' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'WellKnownMissingIssuanceEndpoint' | 'WellKnownIssuanceEndpointCrossOrigin' | 'WellKnownUnsupportedSigningAlgorithm' | 'TokenHttpNotFound' | 'TokenNoResponse' | 'TokenInvalidResponse' | 'TokenInvalidContentType' | 'TokenMalformedSdJwt' | 'TokenInvalidSdJwt' | 'KeyBindingSigningFailed' | 'RpOriginIsOpaque' | 'WellKnownMissingAccountsEndpoint' | 'UserLoggedOut' | 'WellKnownAccountsEndpointCrossOrigin');
|
|
3840
|
+
export type EmailVerificationRequestIssueReason = ('InvalidEmail' | 'DnsFetchFailed' | 'DnsInvalidRecord' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'WellKnownMissingIssuanceEndpoint' | 'WellKnownIssuanceEndpointCrossOrigin' | 'WellKnownUnsupportedSigningAlgorithm' | 'TokenHttpNotFound' | 'TokenNoResponse' | 'TokenInvalidResponse' | 'TokenInvalidContentType' | 'TokenMalformedSdJwt' | 'TokenInvalidSdJwt' | 'KeyBindingSigningFailed' | 'RpOriginIsOpaque' | 'WellKnownMissingAccountsEndpoint' | 'UserLoggedOut' | 'WellKnownAccountsEndpointCrossOrigin' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsInvalidContentType' | 'AccountsEmptyList' | 'EmailVerificationWellKnownHttpNotFound' | 'EmailVerificationWellKnownNoResponse' | 'EmailVerificationWellKnownInvalidResponse' | 'EmailVerificationWellKnownInvalidContentType' | 'JwksHttpNotFound' | 'JwksInvalidResponse');
|
|
3797
3841
|
|
|
3798
3842
|
/**
|
|
3799
3843
|
* This issue tracks client hints related issues. It's used to deprecate old
|
|
@@ -18968,7 +19012,7 @@ export namespace Protocol {
|
|
|
18968
19012
|
* TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
|
|
18969
19013
|
* filter out the ones that aren't necessary to the developers.
|
|
18970
19014
|
*/
|
|
18971
|
-
export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterBrowsingDataRemoved' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
|
|
19015
|
+
export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterBrowsingDataRemoved' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed' | 'PrefetchCancelledOnUserNavigation');
|
|
18972
19016
|
|
|
18973
19017
|
/**
|
|
18974
19018
|
* Information of headers to be displayed when the header mismatch occurred.
|
|
@@ -21166,8 +21210,8 @@ export namespace Protocol {
|
|
|
21166
21210
|
targetId: TargetID;
|
|
21167
21211
|
/**
|
|
21168
21212
|
* The id of the panel we want DevTools to open initially. Currently
|
|
21169
|
-
* supported panels are elements, console, network, sources, resources
|
|
21170
|
-
* and
|
|
21213
|
+
* supported panels are elements, console, network, sources, resources,
|
|
21214
|
+
* timeline, chrome-recorder, heap-profiler, lighthouse, and security.
|
|
21171
21215
|
*/
|
|
21172
21216
|
panelId?: string;
|
|
21173
21217
|
}
|