Skip to content

Commit cf78806

Browse files
committed
Roll protocol to r1433962
1 parent b9e45c3 commit cf78806

8 files changed

Lines changed: 148 additions & 5 deletions

changelog.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,58 @@
11

22

3+
## Roll protocol to r1433962 — _2025-03-18T04:29:59.000Z_
4+
###### Diff: [`b9e45c3...6cf64d4`](https://github.com/ChromeDevTools/devtools-protocol/compare/b9e45c3...6cf64d4)
5+
6+
```diff
7+
@@ browser_protocol.pdl:858 @@ experimental domain Audits
8+
type SRIMessageSignatureIssueDetails extends object
9+
properties
10+
SRIMessageSignatureError error
11+
+ string signatureBase
12+
AffectedRequest request
13+
14+
type GenericIssueErrorType extends string
15+
@@ -4594,7 +4595,8 @@ domain Emulation
16+
experimental optional Page.Viewport viewport
17+
# If set, the display feature of a multi-segment screen. If not set, multi-segment support
18+
# is turned-off.
19+
- experimental optional DisplayFeature displayFeature
20+
+ # Deprecated, use Emulation.setDisplayFeaturesOverride.
21+
+ experimental deprecated optional DisplayFeature displayFeature
22+
# If set, the posture of a foldable device. If not set the posture is set
23+
# to continuous.
24+
# Deprecated, use Emulation.setDevicePostureOverride.
25+
@@ -4612,6 +4614,18 @@ domain Emulation
26+
# Does nothing if no override is set.
27+
experimental command clearDevicePostureOverride
28+
29+
+ # Start using the given display features to pupulate the Viewport Segments API.
30+
+ # This override can also be set in setDeviceMetricsOverride().
31+
+ experimental command setDisplayFeaturesOverride
32+
+ parameters
33+
+ array of DisplayFeature features
34+
+
35+
+ # Clears the display features override set with either setDeviceMetricsOverride()
36+
+ # or setDisplayFeaturesOverride() and starts using display features from the
37+
+ # platform again.
38+
+ # Does nothing if no override is set.
39+
+ experimental command clearDisplayFeaturesOverride
40+
+
41+
experimental command setScrollbarsHidden
42+
parameters
43+
# Whether scrollbars should be always hidden.
44+
@@ -12903,6 +12917,7 @@ experimental domain Preload
45+
PrefetchFailedMIMENotSupported
46+
PrefetchFailedNetError
47+
PrefetchFailedNon2XX
48+
+ PrefetchEvictedAfterBrowsingDataRemoved
49+
PrefetchEvictedAfterCandidateRemoved
50+
PrefetchEvictedForNewerPrefetch
51+
PrefetchHeldback
52+
```
53+
354
## Roll protocol to r1432532 — _2025-03-14T04:29:36.000Z_
4-
###### Diff: [`8d0eb7b...143cc5d`](https://github.com/ChromeDevTools/devtools-protocol/compare/8d0eb7b...143cc5d)
55+
###### Diff: [`8d0eb7b...b9e45c3`](https://github.com/ChromeDevTools/devtools-protocol/compare/8d0eb7b...b9e45c3)
556

657
```diff
758
@@ browser_protocol.pdl:9911 @@ domain Page

json/browser_protocol.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,10 @@
16781678
"name": "error",
16791679
"$ref": "SRIMessageSignatureError"
16801680
},
1681+
{
1682+
"name": "signatureBase",
1683+
"type": "string"
1684+
},
16811685
{
16821686
"name": "request",
16831687
"$ref": "AffectedRequest"
@@ -9962,8 +9966,9 @@
99629966
},
99639967
{
99649968
"name": "displayFeature",
9965-
"description": "If set, the display feature of a multi-segment screen. If not set, multi-segment support\nis turned-off.",
9969+
"description": "If set, the display feature of a multi-segment screen. If not set, multi-segment support\nis turned-off.\nDeprecated, use Emulation.setDisplayFeaturesOverride.",
99669970
"experimental": true,
9971+
"deprecated": true,
99679972
"optional": true,
99689973
"$ref": "DisplayFeature"
99699974
},
@@ -9993,6 +9998,25 @@
99939998
"description": "Clears a device posture override set with either setDeviceMetricsOverride()\nor setDevicePostureOverride() and starts using posture information from the\nplatform again.\nDoes nothing if no override is set.",
99949999
"experimental": true
999510000
},
10001+
{
10002+
"name": "setDisplayFeaturesOverride",
10003+
"description": "Start using the given display features to pupulate the Viewport Segments API.\nThis override can also be set in setDeviceMetricsOverride().",
10004+
"experimental": true,
10005+
"parameters": [
10006+
{
10007+
"name": "features",
10008+
"type": "array",
10009+
"items": {
10010+
"$ref": "DisplayFeature"
10011+
}
10012+
}
10013+
]
10014+
},
10015+
{
10016+
"name": "clearDisplayFeaturesOverride",
10017+
"description": "Clears the display features override set with either setDeviceMetricsOverride()\nor setDisplayFeaturesOverride() and starts using display features from the\nplatform again.\nDoes nothing if no override is set.",
10018+
"experimental": true
10019+
},
999610020
{
999710021
"name": "setScrollbarsHidden",
999810022
"experimental": true,
@@ -27169,6 +27193,7 @@
2716927193
"PrefetchFailedMIMENotSupported",
2717027194
"PrefetchFailedNetError",
2717127195
"PrefetchFailedNon2XX",
27196+
"PrefetchEvictedAfterBrowsingDataRemoved",
2717227197
"PrefetchEvictedAfterCandidateRemoved",
2717327198
"PrefetchEvictedForNewerPrefetch",
2717427199
"PrefetchHeldback",

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.1432532",
3+
"version": "0.0.1433962",
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: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ experimental domain Audits
858858
type SRIMessageSignatureIssueDetails extends object
859859
properties
860860
SRIMessageSignatureError error
861+
string signatureBase
861862
AffectedRequest request
862863

863864
type GenericIssueErrorType extends string
@@ -4594,7 +4595,8 @@ domain Emulation
45944595
experimental optional Page.Viewport viewport
45954596
# If set, the display feature of a multi-segment screen. If not set, multi-segment support
45964597
# is turned-off.
4597-
experimental optional DisplayFeature displayFeature
4598+
# Deprecated, use Emulation.setDisplayFeaturesOverride.
4599+
experimental deprecated optional DisplayFeature displayFeature
45984600
# If set, the posture of a foldable device. If not set the posture is set
45994601
# to continuous.
46004602
# Deprecated, use Emulation.setDevicePostureOverride.
@@ -4612,6 +4614,18 @@ domain Emulation
46124614
# Does nothing if no override is set.
46134615
experimental command clearDevicePostureOverride
46144616

4617+
# Start using the given display features to pupulate the Viewport Segments API.
4618+
# This override can also be set in setDeviceMetricsOverride().
4619+
experimental command setDisplayFeaturesOverride
4620+
parameters
4621+
array of DisplayFeature features
4622+
4623+
# Clears the display features override set with either setDeviceMetricsOverride()
4624+
# or setDisplayFeaturesOverride() and starts using display features from the
4625+
# platform again.
4626+
# Does nothing if no override is set.
4627+
experimental command clearDisplayFeaturesOverride
4628+
46154629
experimental command setScrollbarsHidden
46164630
parameters
46174631
# Whether scrollbars should be always hidden.
@@ -12903,6 +12917,7 @@ experimental domain Preload
1290312917
PrefetchFailedMIMENotSupported
1290412918
PrefetchFailedNetError
1290512919
PrefetchFailedNon2XX
12920+
PrefetchEvictedAfterBrowsingDataRemoved
1290612921
PrefetchEvictedAfterCandidateRemoved
1290712922
PrefetchEvictedForNewerPrefetch
1290812923
PrefetchHeldback

types/protocol-mapping.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2813,6 +2813,24 @@ export namespace ProtocolMapping {
28132813
paramsType: [];
28142814
returnType: void;
28152815
};
2816+
/**
2817+
* Start using the given display features to pupulate the Viewport Segments API.
2818+
* This override can also be set in setDeviceMetricsOverride().
2819+
*/
2820+
'Emulation.setDisplayFeaturesOverride': {
2821+
paramsType: [Protocol.Emulation.SetDisplayFeaturesOverrideRequest];
2822+
returnType: void;
2823+
};
2824+
/**
2825+
* Clears the display features override set with either setDeviceMetricsOverride()
2826+
* or setDisplayFeaturesOverride() and starts using display features from the
2827+
* platform again.
2828+
* Does nothing if no override is set.
2829+
*/
2830+
'Emulation.clearDisplayFeaturesOverride': {
2831+
paramsType: [];
2832+
returnType: void;
2833+
};
28162834
'Emulation.setScrollbarsHidden': {
28172835
paramsType: [Protocol.Emulation.SetScrollbarsHiddenRequest];
28182836
returnType: void;

types/protocol-proxy-api.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,6 +1926,20 @@ export namespace ProtocolProxyApi {
19261926
*/
19271927
clearDevicePostureOverride(): Promise<void>;
19281928

1929+
/**
1930+
* Start using the given display features to pupulate the Viewport Segments API.
1931+
* This override can also be set in setDeviceMetricsOverride().
1932+
*/
1933+
setDisplayFeaturesOverride(params: Protocol.Emulation.SetDisplayFeaturesOverrideRequest): Promise<void>;
1934+
1935+
/**
1936+
* Clears the display features override set with either setDeviceMetricsOverride()
1937+
* or setDisplayFeaturesOverride() and starts using display features from the
1938+
* platform again.
1939+
* Does nothing if no override is set.
1940+
*/
1941+
clearDisplayFeaturesOverride(): Promise<void>;
1942+
19291943
setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<void>;
19301944

19311945
setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<void>;

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,6 +2050,20 @@ export namespace ProtocolTestsProxyApi {
20502050
*/
20512051
clearDevicePostureOverride(): Promise<{id: number, result: void, sessionId: string}>;
20522052

2053+
/**
2054+
* Start using the given display features to pupulate the Viewport Segments API.
2055+
* This override can also be set in setDeviceMetricsOverride().
2056+
*/
2057+
setDisplayFeaturesOverride(params: Protocol.Emulation.SetDisplayFeaturesOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2058+
2059+
/**
2060+
* Clears the display features override set with either setDeviceMetricsOverride()
2061+
* or setDisplayFeaturesOverride() and starts using display features from the
2062+
* platform again.
2063+
* Does nothing if no override is set.
2064+
*/
2065+
clearDisplayFeaturesOverride(): Promise<{id: number, result: void, sessionId: string}>;
2066+
20532067
setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<{id: number, result: void, sessionId: string}>;
20542068

20552069
setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<{id: number, result: void, sessionId: string}>;

types/protocol.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3581,6 +3581,7 @@ export namespace Protocol {
35813581

35823582
export interface SRIMessageSignatureIssueDetails {
35833583
error: SRIMessageSignatureError;
3584+
signatureBase: string;
35843585
request: AffectedRequest;
35853586
}
35863587

@@ -8686,6 +8687,7 @@ export namespace Protocol {
86868687
/**
86878688
* If set, the display feature of a multi-segment screen. If not set, multi-segment support
86888689
* is turned-off.
8690+
* Deprecated, use Emulation.setDisplayFeaturesOverride.
86898691
*/
86908692
displayFeature?: DisplayFeature;
86918693
/**
@@ -8700,6 +8702,10 @@ export namespace Protocol {
87008702
posture: DevicePosture;
87018703
}
87028704

8705+
export interface SetDisplayFeaturesOverrideRequest {
8706+
features: DisplayFeature[];
8707+
}
8708+
87038709
export interface SetScrollbarsHiddenRequest {
87048710
/**
87058711
* Whether scrollbars should be always hidden.
@@ -19180,7 +19186,7 @@ export namespace Protocol {
1918019186
* TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
1918119187
* filter out the ones that aren't necessary to the developers.
1918219188
*/
19183-
export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | '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');
19189+
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');
1918419190

1918519191
/**
1918619192
* Information of headers to be displayed when the header mismatch occurred.

0 commit comments

Comments
 (0)