Skip to content

Commit 3507fa9

Browse files
committed
Roll protocol to r1548823
1 parent d9682c8 commit 3507fa9

File tree

9 files changed

+97
-228
lines changed

9 files changed

+97
-228
lines changed

changelog.md

Lines changed: 23 additions & 225 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11

22

3+
## Roll protocol to r1548823 — _2025-11-22T04:31:34.000Z_
4+
###### Diff: [`d9682c8...7783aa9`](https://github.com/ChromeDevTools/devtools-protocol/compare/d9682c8...7783aa9)
5+
6+
```diff
7+
@@ domains/Page.pdl:1767 @@ domain Page
8+
experimental command setPrerenderingAllowed
9+
parameters
10+
boolean isAllowed
11+
+
12+
+ # Get the annotated page content for the main frame.
13+
+ # This is an experimental command that is subject to change.
14+
+ experimental command getAnnotatedPageContent
15+
+ parameters
16+
+ # Whether to include actionable information. Defaults to true.
17+
+ optional boolean includeActionableInformation
18+
+ returns
19+
+ # The annotated page content as a base64 encoded protobuf.
20+
+ # The format is defined by the `AnnotatedPageContent` message in
21+
+ # components/optimization_guide/proto/features/common_quality_data.proto
22+
+ binary content
23+
```
24+
325
## Roll protocol to r1548244 — _2025-11-21T04:32:14.000Z_
4-
###### Diff: [`a07bc87...f72c051`](https://github.com/ChromeDevTools/devtools-protocol/compare/a07bc87...f72c051)
26+
###### Diff: [`a07bc87...d9682c8`](https://github.com/ChromeDevTools/devtools-protocol/compare/a07bc87...d9682c8)
527

628
```diff
729
@@ domains/CSS.pdl:500 @@ experimental domain CSS
@@ -41736,230 +41758,6 @@ index 0dbdc01d..7a3c772c 100644
4173641758
+ event preloadingAttemptSourcesUpdated
4173741759
+ parameters
4173841760
+ array of PreloadingAttemptSource preloadingAttemptSources
41739-
+
41740-
# This domain allows interacting with the FedCM dialog.
41741-
experimental domain FedCm
41742-
event dialogShown
41743-
```
41744-
41745-
## Roll protocol to r1113120 — _2023-03-04T04:28:32.000Z_
41746-
###### Diff: [`6aab256...3ca05ae`](https://github.com/ChromeDevTools/devtools-protocol/compare/6aab256...3ca05ae)
41747-
41748-
```diff
41749-
@@ browser_protocol.pdl:8482 @@ domain Page
41750-
# Tree structure of reasons why the page could not be cached for each frame.
41751-
optional BackForwardCacheNotRestoredExplanationTree notRestoredExplanationsTree
41752-
41753-
- # List of FinalStatus reasons for Prerender2.
41754-
- type PrerenderFinalStatus extends string
41755-
- enum
41756-
- Activated
41757-
- Destroyed
41758-
- LowEndDevice
41759-
- InvalidSchemeRedirect
41760-
- InvalidSchemeNavigation
41761-
- InProgressNavigation
41762-
- NavigationRequestBlockedByCsp
41763-
- MainFrameNavigation
41764-
- MojoBinderPolicy
41765-
- RendererProcessCrashed
41766-
- RendererProcessKilled
41767-
- Download
41768-
- TriggerDestroyed
41769-
- NavigationNotCommitted
41770-
- NavigationBadHttpStatus
41771-
- ClientCertRequested
41772-
- NavigationRequestNetworkError
41773-
- MaxNumOfRunningPrerendersExceeded
41774-
- CancelAllHostsForTesting
41775-
- DidFailLoad
41776-
- Stop
41777-
- SslCertificateError
41778-
- LoginAuthRequested
41779-
- UaChangeRequiresReload
41780-
- BlockedByClient
41781-
- AudioOutputDeviceRequested
41782-
- MixedContent
41783-
- TriggerBackgrounded
41784-
- EmbedderTriggeredAndCrossOriginRedirected
41785-
- MemoryLimitExceeded
41786-
- # Prerenders can be cancelled when Chrome uses excessive memory. This is
41787-
- # recorded when it fails to get the memory usage.
41788-
- FailToGetMemoryUsage
41789-
- DataSaverEnabled
41790-
- HasEffectiveUrl
41791-
- ActivatedBeforeStarted
41792-
- InactivePageRestriction
41793-
- StartFailed
41794-
- TimeoutBackgrounded
41795-
- CrossSiteRedirect
41796-
- CrossSiteNavigation
41797-
- SameSiteCrossOriginRedirect
41798-
- SameSiteCrossOriginNavigation
41799-
- SameSiteCrossOriginRedirectNotOptIn
41800-
- SameSiteCrossOriginNavigationNotOptIn
41801-
- ActivationNavigationParameterMismatch
41802-
- ActivatedInBackground
41803-
- EmbedderHostDisallowed
41804-
- ActivationNavigationDestroyedBeforeSuccess
41805-
- TabClosedByUserGesture
41806-
- TabClosedWithoutUserGesture
41807-
- PrimaryMainFrameRendererProcessCrashed
41808-
- PrimaryMainFrameRendererProcessKilled
41809-
- ActivationFramePolicyNotCompatible
41810-
- PreloadingDisabled
41811-
- BatterySaverEnabled
41812-
- ActivatedDuringMainFrameNavigation
41813-
- PreloadingUnsupportedByWebContents
41814-
-
41815-
- # Fired when a prerender attempt is completed.
41816-
- experimental event prerenderAttemptCompleted
41817-
- parameters
41818-
- # The frame id of the frame initiating prerendering.
41819-
- FrameId initiatingFrameId
41820-
- string prerenderingUrl
41821-
- PrerenderFinalStatus finalStatus
41822-
- # This is used to give users more information about the name of the API call
41823-
- # that is incompatible with prerender and has caused the cancellation of the attempt
41824-
- optional string disallowedApiMethod
41825-
-
41826-
- # Preloading status values, see also PreloadingTriggeringOutcome. This
41827-
- # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
41828-
- type PreloadingStatus extends string
41829-
- enum
41830-
- Pending
41831-
- Running
41832-
- Ready
41833-
- Success
41834-
- Failure
41835-
- # PreloadingTriggeringOutcome which not used by prefetch nor prerender.
41836-
- NotSupported
41837-
-
41838-
- # TODO(crbug/1384419): Create a dedicated domain for preloading.
41839-
- # Fired when a prefetch attempt is updated.
41840-
- experimental event prefetchStatusUpdated
41841-
- parameters
41842-
- # The frame id of the frame initiating prefetch.
41843-
- FrameId initiatingFrameId
41844-
- string prefetchUrl
41845-
- PreloadingStatus status
41846-
-
41847-
- # TODO(crbug/1384419): Create a dedicated domain for preloading.
41848-
- # Fired when a prerender attempt is updated.
41849-
- experimental event prerenderStatusUpdated
41850-
- parameters
41851-
- # The frame id of the frame initiating prerender.
41852-
- FrameId initiatingFrameId
41853-
- string prerenderingUrl
41854-
- PreloadingStatus status
41855-
-
41856-
event loadEventFired
41857-
parameters
41858-
Network.MonotonicTime timestamp
41859-
@@ -10858,6 +10755,107 @@ experimental domain Preload
41860-
parameters
41861-
RuleSetId id
41862-
41863-
+ # List of FinalStatus reasons for Prerender2.
41864-
+ type PrerenderFinalStatus extends string
41865-
+ enum
41866-
+ Activated
41867-
+ Destroyed
41868-
+ LowEndDevice
41869-
+ InvalidSchemeRedirect
41870-
+ InvalidSchemeNavigation
41871-
+ InProgressNavigation
41872-
+ NavigationRequestBlockedByCsp
41873-
+ MainFrameNavigation
41874-
+ MojoBinderPolicy
41875-
+ RendererProcessCrashed
41876-
+ RendererProcessKilled
41877-
+ Download
41878-
+ TriggerDestroyed
41879-
+ NavigationNotCommitted
41880-
+ NavigationBadHttpStatus
41881-
+ ClientCertRequested
41882-
+ NavigationRequestNetworkError
41883-
+ MaxNumOfRunningPrerendersExceeded
41884-
+ CancelAllHostsForTesting
41885-
+ DidFailLoad
41886-
+ Stop
41887-
+ SslCertificateError
41888-
+ LoginAuthRequested
41889-
+ UaChangeRequiresReload
41890-
+ BlockedByClient
41891-
+ AudioOutputDeviceRequested
41892-
+ MixedContent
41893-
+ TriggerBackgrounded
41894-
+ EmbedderTriggeredAndCrossOriginRedirected
41895-
+ MemoryLimitExceeded
41896-
+ # Prerenders can be cancelled when Chrome uses excessive memory. This is
41897-
+ # recorded when it fails to get the memory usage.
41898-
+ FailToGetMemoryUsage
41899-
+ DataSaverEnabled
41900-
+ HasEffectiveUrl
41901-
+ ActivatedBeforeStarted
41902-
+ InactivePageRestriction
41903-
+ StartFailed
41904-
+ TimeoutBackgrounded
41905-
+ CrossSiteRedirect
41906-
+ CrossSiteNavigation
41907-
+ SameSiteCrossOriginRedirect
41908-
+ SameSiteCrossOriginNavigation
41909-
+ SameSiteCrossOriginRedirectNotOptIn
41910-
+ SameSiteCrossOriginNavigationNotOptIn
41911-
+ ActivationNavigationParameterMismatch
41912-
+ ActivatedInBackground
41913-
+ EmbedderHostDisallowed
41914-
+ ActivationNavigationDestroyedBeforeSuccess
41915-
+ TabClosedByUserGesture
41916-
+ TabClosedWithoutUserGesture
41917-
+ PrimaryMainFrameRendererProcessCrashed
41918-
+ PrimaryMainFrameRendererProcessKilled
41919-
+ ActivationFramePolicyNotCompatible
41920-
+ PreloadingDisabled
41921-
+ BatterySaverEnabled
41922-
+ ActivatedDuringMainFrameNavigation
41923-
+ PreloadingUnsupportedByWebContents
41924-
+
41925-
+ # Fired when a prerender attempt is completed.
41926-
+ event prerenderAttemptCompleted
41927-
+ parameters
41928-
+ # The frame id of the frame initiating prerendering.
41929-
+ Page.FrameId initiatingFrameId
41930-
+ string prerenderingUrl
41931-
+ PrerenderFinalStatus finalStatus
41932-
+ # This is used to give users more information about the name of the API call
41933-
+ # that is incompatible with prerender and has caused the cancellation of the attempt
41934-
+ optional string disallowedApiMethod
41935-
+
41936-
+ # Preloading status values, see also PreloadingTriggeringOutcome. This
41937-
+ # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
41938-
+ type PreloadingStatus extends string
41939-
+ enum
41940-
+ Pending
41941-
+ Running
41942-
+ Ready
41943-
+ Success
41944-
+ Failure
41945-
+ # PreloadingTriggeringOutcome which not used by prefetch nor prerender.
41946-
+ NotSupported
41947-
+
41948-
+ # Fired when a prefetch attempt is updated.
41949-
+ event prefetchStatusUpdated
41950-
+ parameters
41951-
+ # The frame id of the frame initiating prefetch.
41952-
+ Page.FrameId initiatingFrameId
41953-
+ string prefetchUrl
41954-
+ PreloadingStatus status
41955-
+
41956-
+ # Fired when a prerender attempt is updated.
41957-
+ event prerenderStatusUpdated
41958-
+ parameters
41959-
+ # The frame id of the frame initiating prerender.
41960-
+ Page.FrameId initiatingFrameId
41961-
+ string prerenderingUrl
41962-
+ PreloadingStatus status
4196341761
+
4196441762
# This domain allows interacting with the FedCM dialog.
4196541763
experimental domain FedCm

json/browser_protocol.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23306,6 +23306,26 @@
2330623306
"type": "boolean"
2330723307
}
2330823308
]
23309+
},
23310+
{
23311+
"name": "getAnnotatedPageContent",
23312+
"description": "Get the annotated page content for the main frame.\nThis is an experimental command that is subject to change.",
23313+
"experimental": true,
23314+
"parameters": [
23315+
{
23316+
"name": "includeActionableInformation",
23317+
"description": "Whether to include actionable information. Defaults to true.",
23318+
"optional": true,
23319+
"type": "boolean"
23320+
}
23321+
],
23322+
"returns": [
23323+
{
23324+
"name": "content",
23325+
"description": "The annotated page content as a base64 encoded protobuf.\nThe format is defined by the `AnnotatedPageContent` message in\ncomponents/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)",
23326+
"type": "string"
23327+
}
23328+
]
2330923329
}
2331023330
],
2331123331
"events": [

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.1548244",
3+
"version": "0.0.1548823",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/domains/Page.pdl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,3 +1767,15 @@ domain Page
17671767
experimental command setPrerenderingAllowed
17681768
parameters
17691769
boolean isAllowed
1770+
1771+
# Get the annotated page content for the main frame.
1772+
# This is an experimental command that is subject to change.
1773+
experimental command getAnnotatedPageContent
1774+
parameters
1775+
# Whether to include actionable information. Defaults to true.
1776+
optional boolean includeActionableInformation
1777+
returns
1778+
# The annotated page content as a base64 encoded protobuf.
1779+
# The format is defined by the `AnnotatedPageContent` message in
1780+
# components/optimization_guide/proto/features/common_quality_data.proto
1781+
binary content

types/protocol-mapping.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5154,6 +5154,15 @@ export namespace ProtocolMapping {
51545154
paramsType: [Protocol.Page.SetPrerenderingAllowedRequest];
51555155
returnType: void;
51565156
};
5157+
/**
5158+
* Get the annotated page content for the main frame.
5159+
* This is an experimental command that is subject to change.
5160+
* @experimental
5161+
*/
5162+
'Page.getAnnotatedPageContent': {
5163+
paramsType: [Protocol.Page.GetAnnotatedPageContentRequest?];
5164+
returnType: Protocol.Page.GetAnnotatedPageContentResponse;
5165+
};
51575166
/**
51585167
* Disable collecting and reporting metrics.
51595168
*/

types/protocol-proxy-api.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4068,6 +4068,13 @@ export namespace ProtocolProxyApi {
40684068
*/
40694069
setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<void>;
40704070

4071+
/**
4072+
* Get the annotated page content for the main frame.
4073+
* This is an experimental command that is subject to change.
4074+
* @experimental
4075+
*/
4076+
getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<Protocol.Page.GetAnnotatedPageContentResponse>;
4077+
40714078
on(event: 'domContentEventFired', listener: (params: Protocol.Page.DomContentEventFiredEvent) => void): void;
40724079

40734080
/**

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4330,6 +4330,13 @@ export namespace ProtocolTestsProxyApi {
43304330
*/
43314331
setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
43324332

4333+
/**
4334+
* Get the annotated page content for the main frame.
4335+
* This is an experimental command that is subject to change.
4336+
* @experimental
4337+
*/
4338+
getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<{id: number, result: Protocol.Page.GetAnnotatedPageContentResponse, sessionId: string}>;
4339+
43334340
onDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
43344341
offDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
43354342
onceDomContentEventFired(eventMatcher?: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => boolean): Promise<{ params: Protocol.Page.DomContentEventFiredEvent }>;

types/protocol.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17412,6 +17412,22 @@ export namespace Protocol {
1741217412
isAllowed: boolean;
1741317413
}
1741417414

17415+
export interface GetAnnotatedPageContentRequest {
17416+
/**
17417+
* Whether to include actionable information. Defaults to true.
17418+
*/
17419+
includeActionableInformation?: boolean;
17420+
}
17421+
17422+
export interface GetAnnotatedPageContentResponse {
17423+
/**
17424+
* The annotated page content as a base64 encoded protobuf.
17425+
* The format is defined by the `AnnotatedPageContent` message in
17426+
* components/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)
17427+
*/
17428+
content: string;
17429+
}
17430+
1741517431
export interface DomContentEventFiredEvent {
1741617432
timestamp: Network.MonotonicTime;
1741717433
}

0 commit comments

Comments
 (0)