Skip to content

Commit 7de76fa

Browse files
committed
Roll protocol to r1493946
1 parent 868b942 commit 7de76fa

8 files changed

Lines changed: 39 additions & 18 deletions

json/browser_protocol.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4364,6 +4364,12 @@
43644364
"description": "true if the query contains scroll-state() queries.",
43654365
"optional": true,
43664366
"type": "boolean"
4367+
},
4368+
{
4369+
"name": "queriesAnchored",
4370+
"description": "true if the query contains anchored() queries.",
4371+
"optional": true,
4372+
"type": "boolean"
43674373
}
43684374
]
43694375
},
@@ -7820,7 +7826,7 @@
78207826
},
78217827
{
78227828
"name": "getContainerForNode",
7823-
"description": "Returns the query container of the given node based on container query\nconditions: containerName, physical and logical axes, and whether it queries\nscroll-state. If no axes are provided and queriesScrollState is false, the\nstyle container is returned, which is the direct parent or the closest\nelement with a matching container-name.",
7829+
"description": "Returns the query container of the given node based on container query\nconditions: containerName, physical and logical axes, and whether it queries\nscroll-state or anchored elements. If no axes are provided and\nqueriesScrollState is false, the style container is returned, which is the\ndirect parent or the closest element with a matching container-name.",
78247830
"experimental": true,
78257831
"parameters": [
78267832
{
@@ -7846,6 +7852,11 @@
78467852
"name": "queriesScrollState",
78477853
"optional": true,
78487854
"type": "boolean"
7855+
},
7856+
{
7857+
"name": "queriesAnchored",
7858+
"optional": true,
7859+
"type": "boolean"
78497860
}
78507861
],
78517862
"returns": [
@@ -27970,7 +27981,8 @@
2797027981
"OtherPrerenderedPageActivated",
2797127982
"V8OptimizerDisabled",
2797227983
"PrerenderFailedDuringPrefetch",
27973-
"BrowsingDataRemoved"
27984+
"BrowsingDataRemoved",
27985+
"PrerenderHostReused"
2797427986
]
2797527987
},
2797627988
{

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.1491235",
3+
"version": "0.0.1493946",
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: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,6 +2134,8 @@ experimental domain CSS
21342134
optional DOM.LogicalAxes logicalAxes
21352135
# true if the query contains scroll-state() queries.
21362136
optional boolean queriesScrollState
2137+
# true if the query contains anchored() queries.
2138+
optional boolean queriesAnchored
21372139

21382140
# CSS Supports at-rule descriptor.
21392141
experimental type CSSSupports extends object
@@ -3717,16 +3719,17 @@ domain DOM
37173719

37183720
# Returns the query container of the given node based on container query
37193721
# conditions: containerName, physical and logical axes, and whether it queries
3720-
# scroll-state. If no axes are provided and queriesScrollState is false, the
3721-
# style container is returned, which is the direct parent or the closest
3722-
# element with a matching container-name.
3722+
# scroll-state or anchored elements. If no axes are provided and
3723+
# queriesScrollState is false, the style container is returned, which is the
3724+
# direct parent or the closest element with a matching container-name.
37233725
experimental command getContainerForNode
37243726
parameters
37253727
NodeId nodeId
37263728
optional string containerName
37273729
optional PhysicalAxes physicalAxes
37283730
optional LogicalAxes logicalAxes
37293731
optional boolean queriesScrollState
3732+
optional boolean queriesAnchored
37303733
returns
37313734
# The container node for the given node, or null if not found.
37323735
optional NodeId nodeId
@@ -13245,6 +13248,7 @@ experimental domain Preload
1324513248
V8OptimizerDisabled
1324613249
PrerenderFailedDuringPrefetch
1324713250
BrowsingDataRemoved
13251+
PrerenderHostReused
1324813252

1324913253
# Fired when a preload enabled state is updated.
1325013254
event preloadEnabledStateUpdated

types/protocol-mapping.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,9 +2603,9 @@ export namespace ProtocolMapping {
26032603
/**
26042604
* Returns the query container of the given node based on container query
26052605
* conditions: containerName, physical and logical axes, and whether it queries
2606-
* scroll-state. If no axes are provided and queriesScrollState is false, the
2607-
* style container is returned, which is the direct parent or the closest
2608-
* element with a matching container-name.
2606+
* scroll-state or anchored elements. If no axes are provided and
2607+
* queriesScrollState is false, the style container is returned, which is the
2608+
* direct parent or the closest element with a matching container-name.
26092609
*/
26102610
'DOM.getContainerForNode': {
26112611
paramsType: [Protocol.DOM.GetContainerForNodeRequest];

types/protocol-proxy-api.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,9 +1629,9 @@ export namespace ProtocolProxyApi {
16291629
/**
16301630
* Returns the query container of the given node based on container query
16311631
* conditions: containerName, physical and logical axes, and whether it queries
1632-
* scroll-state. If no axes are provided and queriesScrollState is false, the
1633-
* style container is returned, which is the direct parent or the closest
1634-
* element with a matching container-name.
1632+
* scroll-state or anchored elements. If no axes are provided and
1633+
* queriesScrollState is false, the style container is returned, which is the
1634+
* direct parent or the closest element with a matching container-name.
16351635
*/
16361636
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<Protocol.DOM.GetContainerForNodeResponse>;
16371637

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,9 +1713,9 @@ export namespace ProtocolTestsProxyApi {
17131713
/**
17141714
* Returns the query container of the given node based on container query
17151715
* conditions: containerName, physical and logical axes, and whether it queries
1716-
* scroll-state. If no axes are provided and queriesScrollState is false, the
1717-
* style container is returned, which is the direct parent or the closest
1718-
* element with a matching container-name.
1716+
* scroll-state or anchored elements. If no axes are provided and
1717+
* queriesScrollState is false, the style container is returned, which is the
1718+
* direct parent or the closest element with a matching container-name.
17191719
*/
17201720
getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<{id: number, result: Protocol.DOM.GetContainerForNodeResponse, sessionId: string}>;
17211721

types/protocol.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5184,6 +5184,10 @@ export namespace Protocol {
51845184
* true if the query contains scroll-state() queries.
51855185
*/
51865186
queriesScrollState?: boolean;
5187+
/**
5188+
* true if the query contains anchored() queries.
5189+
*/
5190+
queriesAnchored?: boolean;
51875191
}
51885192

51895193
/**
@@ -7394,6 +7398,7 @@ export namespace Protocol {
73947398
physicalAxes?: PhysicalAxes;
73957399
logicalAxes?: LogicalAxes;
73967400
queriesScrollState?: boolean;
7401+
queriesAnchored?: boolean;
73977402
}
73987403

73997404
export interface GetContainerForNodeResponse {
@@ -19626,7 +19631,7 @@ export namespace Protocol {
1962619631
/**
1962719632
* List of FinalStatus reasons for Prerender2.
1962819633
*/
19629-
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated' | 'V8OptimizerDisabled' | 'PrerenderFailedDuringPrefetch' | 'BrowsingDataRemoved');
19634+
export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated' | 'V8OptimizerDisabled' | 'PrerenderFailedDuringPrefetch' | 'BrowsingDataRemoved' | 'PrerenderHostReused');
1963019635

1963119636
/**
1963219637
* Preloading status values, see also PreloadingTriggeringOutcome. This

0 commit comments

Comments
 (0)