Skip to content

Commit b888df9

Browse files
committed
Roll protocol to r1593706
1 parent 58bb362 commit b888df9

9 files changed

Lines changed: 344 additions & 52 deletions

changelog.md

Lines changed: 72 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,78 @@
11

22

3+
## Roll protocol to r1593706 — _2026-03-04T04:52:43.000Z_
4+
###### Diff: [`58bb362...07204e4`](https://github.com/ChromeDevTools/devtools-protocol/compare/58bb362...07204e4)
5+
6+
```diff
7+
@@ domains/Emulation.pdl:306 @@ domain Emulation
8+
# classic (occupying space within the layout) or overlay, depending
9+
# on the platform. Note: if `mobile` is `true`, the default scrollbar type is `overlay`.
10+
default
11+
+ # If set to true, enables screen orientation lock emulation, which
12+
+ # intercepts screen.orientation.lock() calls from the page and reports
13+
+ # orientation changes via screenOrientationLockChanged events. This is
14+
+ # useful for emulating mobile device orientation lock behavior in
15+
+ # responsive design mode.
16+
+ experimental optional boolean screenOrientationLockEmulation
17+
18+
# Start reporting the given posture value to the Device Posture API.
19+
# This override can also be set in setDeviceMetricsOverride().
20+
@@ -530,6 +536,16 @@ domain Emulation
21+
# Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
22+
experimental event virtualTimeBudgetExpired
23+
24+
+ # Fired when a page calls screen.orientation.lock() or screen.orientation.unlock()
25+
+ # while device emulation is enabled. This allows the DevTools frontend to update the
26+
+ # emulated device orientation accordingly.
27+
+ experimental event screenOrientationLockChanged
28+
+ parameters
29+
+ # Whether the screen orientation is currently locked.
30+
+ boolean locked
31+
+ # The orientation lock type requested by the page. Only set when locked is true.
32+
+ optional ScreenOrientation orientation
33+
+
34+
# Enum of image types that can be disabled.
35+
experimental type DisabledImageType extends string
36+
enum
37+
@@ -613,6 +629,34 @@ domain Emulation
38+
returns
39+
ScreenInfo screenInfo
40+
41+
+ # Updates specified screen parameters. Only supported in headless mode.
42+
+ experimental command updateScreen
43+
+ parameters
44+
+ # Target screen identifier.
45+
+ ScreenId screenId
46+
+ # Offset of the left edge of the screen in pixels.
47+
+ optional integer left
48+
+ # Offset of the top edge of the screen in pixels.
49+
+ optional integer top
50+
+ # The width of the screen in pixels.
51+
+ optional integer width
52+
+ # The height of the screen in pixels.
53+
+ optional integer height
54+
+ # Specifies the screen's work area.
55+
+ optional WorkAreaInsets workAreaInsets
56+
+ # Specifies the screen's device pixel ratio.
57+
+ optional number devicePixelRatio
58+
+ # Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270.
59+
+ optional integer rotation
60+
+ # Specifies the screen's color depth in bits.
61+
+ optional integer colorDepth
62+
+ # Specifies the descriptive label for the screen.
63+
+ optional string label
64+
+ # Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
65+
+ optional boolean isInternal
66+
+ returns
67+
+ ScreenInfo screenInfo
68+
+
69+
# Remove screen from the device. Only supported in headless mode.
70+
experimental command removeScreen
71+
parameters
72+
```
73+
374
## Roll protocol to r1591961 — _2026-02-28T04:43:52.000Z_
4-
###### Diff: [`c217062...de27541`](https://github.com/ChromeDevTools/devtools-protocol/compare/c217062...de27541)
75+
###### Diff: [`c217062...58bb362`](https://github.com/ChromeDevTools/devtools-protocol/compare/c217062...58bb362)
576

677
```diff
778
@@ domains/Network.pdl:166 @@ domain Network
@@ -42262,52 +42333,4 @@ index 0dbdc01d..7a3c772c 100644
4226242333
returns
4226342334
# Evaluation result.
4226442335
RemoteObject result
42265-
```
42266-
42267-
## Roll protocol to r1139932 — _2023-05-05T04:26:32.000Z_
42268-
###### Diff: [`3a37ac7...8469893`](https://github.com/ChromeDevTools/devtools-protocol/compare/3a37ac7...8469893)
42269-
42270-
```diff
42271-
@@ browser_protocol.pdl:658 @@ experimental domain Audits
42272-
boolean isWarning
42273-
SharedArrayBufferIssueType type
42274-
42275-
- type TwaQualityEnforcementViolationType extends string
42276-
- enum
42277-
- kHttpError
42278-
- kUnavailableOffline
42279-
- kDigitalAssetLinks
42280-
-
42281-
- type TrustedWebActivityIssueDetails extends object
42282-
- properties
42283-
- # The url that triggers the violation.
42284-
- string url
42285-
- TwaQualityEnforcementViolationType violationType
42286-
- optional integer httpStatusCode
42287-
- # The package name of the Trusted Web Activity client app. This field is
42288-
- # only used when violation type is kDigitalAssetLinks.
42289-
- optional string packageName
42290-
- # The signature of the Trusted Web Activity client app. This field is only
42291-
- # used when violation type is kDigitalAssetLinks.
42292-
- optional string signature
42293-
-
42294-
type LowTextContrastIssueDetails extends object
42295-
properties
42296-
DOM.BackendNodeId violatingNodeId
42297-
@@ -855,7 +836,6 @@ experimental domain Audits
42298-
HeavyAdIssue
42299-
ContentSecurityPolicyIssue
42300-
SharedArrayBufferIssue
42301-
- TrustedWebActivityIssue
42302-
LowTextContrastIssue
42303-
CorsIssue
42304-
AttributionReportingIssue
42305-
@@ -878,7 +858,6 @@ experimental domain Audits
42306-
optional HeavyAdIssueDetails heavyAdIssueDetails
42307-
optional ContentSecurityPolicyIssueDetails contentSecurityPolicyIssueDetails
42308-
optional SharedArrayBufferIssueDetails sharedArrayBufferIssueDetails
42309-
- optional TrustedWebActivityIssueDetails twaQualityEnforcementDetails
42310-
optional LowTextContrastIssueDetails lowTextContrastIssueDetails
42311-
optional CorsIssueDetails corsIssueDetails
42312-
optional AttributionReportingIssueDetails attributionReportingIssueDetails
4231342336
```

json/browser_protocol.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11068,6 +11068,13 @@
1106811068
"overlay",
1106911069
"default"
1107011070
]
11071+
},
11072+
{
11073+
"name": "screenOrientationLockEmulation",
11074+
"description": "If set to true, enables screen orientation lock emulation, which\nintercepts screen.orientation.lock() calls from the page and reports\norientation changes via screenOrientationLockChanged events. This is\nuseful for emulating mobile device orientation lock behavior in\nresponsive design mode.",
11075+
"experimental": true,
11076+
"optional": true,
11077+
"type": "boolean"
1107111078
}
1107211079
]
1107311080
},
@@ -11681,6 +11688,84 @@
1168111688
}
1168211689
]
1168311690
},
11691+
{
11692+
"name": "updateScreen",
11693+
"description": "Updates specified screen parameters. Only supported in headless mode.",
11694+
"experimental": true,
11695+
"parameters": [
11696+
{
11697+
"name": "screenId",
11698+
"description": "Target screen identifier.",
11699+
"$ref": "ScreenId"
11700+
},
11701+
{
11702+
"name": "left",
11703+
"description": "Offset of the left edge of the screen in pixels.",
11704+
"optional": true,
11705+
"type": "integer"
11706+
},
11707+
{
11708+
"name": "top",
11709+
"description": "Offset of the top edge of the screen in pixels.",
11710+
"optional": true,
11711+
"type": "integer"
11712+
},
11713+
{
11714+
"name": "width",
11715+
"description": "The width of the screen in pixels.",
11716+
"optional": true,
11717+
"type": "integer"
11718+
},
11719+
{
11720+
"name": "height",
11721+
"description": "The height of the screen in pixels.",
11722+
"optional": true,
11723+
"type": "integer"
11724+
},
11725+
{
11726+
"name": "workAreaInsets",
11727+
"description": "Specifies the screen's work area.",
11728+
"optional": true,
11729+
"$ref": "WorkAreaInsets"
11730+
},
11731+
{
11732+
"name": "devicePixelRatio",
11733+
"description": "Specifies the screen's device pixel ratio.",
11734+
"optional": true,
11735+
"type": "number"
11736+
},
11737+
{
11738+
"name": "rotation",
11739+
"description": "Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270.",
11740+
"optional": true,
11741+
"type": "integer"
11742+
},
11743+
{
11744+
"name": "colorDepth",
11745+
"description": "Specifies the screen's color depth in bits.",
11746+
"optional": true,
11747+
"type": "integer"
11748+
},
11749+
{
11750+
"name": "label",
11751+
"description": "Specifies the descriptive label for the screen.",
11752+
"optional": true,
11753+
"type": "string"
11754+
},
11755+
{
11756+
"name": "isInternal",
11757+
"description": "Indicates whether the screen is internal to the device or external, attached to the device. Default is false.",
11758+
"optional": true,
11759+
"type": "boolean"
11760+
}
11761+
],
11762+
"returns": [
11763+
{
11764+
"name": "screenInfo",
11765+
"$ref": "ScreenInfo"
11766+
}
11767+
]
11768+
},
1168411769
{
1168511770
"name": "removeScreen",
1168611771
"description": "Remove screen from the device. Only supported in headless mode.",
@@ -11709,6 +11794,24 @@
1170911794
"name": "virtualTimeBudgetExpired",
1171011795
"description": "Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.",
1171111796
"experimental": true
11797+
},
11798+
{
11799+
"name": "screenOrientationLockChanged",
11800+
"description": "Fired when a page calls screen.orientation.lock() or screen.orientation.unlock()\nwhile device emulation is enabled. This allows the DevTools frontend to update the\nemulated device orientation accordingly.",
11801+
"experimental": true,
11802+
"parameters": [
11803+
{
11804+
"name": "locked",
11805+
"description": "Whether the screen orientation is currently locked.",
11806+
"type": "boolean"
11807+
},
11808+
{
11809+
"name": "orientation",
11810+
"description": "The orientation lock type requested by the page. Only set when locked is true.",
11811+
"optional": true,
11812+
"$ref": "ScreenOrientation"
11813+
}
11814+
]
1171211815
}
1171311816
]
1171411817
},

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

pdl/domains/Emulation.pdl

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ domain Emulation
306306
# classic (occupying space within the layout) or overlay, depending
307307
# on the platform. Note: if `mobile` is `true`, the default scrollbar type is `overlay`.
308308
default
309+
# If set to true, enables screen orientation lock emulation, which
310+
# intercepts screen.orientation.lock() calls from the page and reports
311+
# orientation changes via screenOrientationLockChanged events. This is
312+
# useful for emulating mobile device orientation lock behavior in
313+
# responsive design mode.
314+
experimental optional boolean screenOrientationLockEmulation
309315

310316
# Start reporting the given posture value to the Device Posture API.
311317
# This override can also be set in setDeviceMetricsOverride().
@@ -530,6 +536,16 @@ domain Emulation
530536
# Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
531537
experimental event virtualTimeBudgetExpired
532538

539+
# Fired when a page calls screen.orientation.lock() or screen.orientation.unlock()
540+
# while device emulation is enabled. This allows the DevTools frontend to update the
541+
# emulated device orientation accordingly.
542+
experimental event screenOrientationLockChanged
543+
parameters
544+
# Whether the screen orientation is currently locked.
545+
boolean locked
546+
# The orientation lock type requested by the page. Only set when locked is true.
547+
optional ScreenOrientation orientation
548+
533549
# Enum of image types that can be disabled.
534550
experimental type DisabledImageType extends string
535551
enum
@@ -613,6 +629,34 @@ domain Emulation
613629
returns
614630
ScreenInfo screenInfo
615631

632+
# Updates specified screen parameters. Only supported in headless mode.
633+
experimental command updateScreen
634+
parameters
635+
# Target screen identifier.
636+
ScreenId screenId
637+
# Offset of the left edge of the screen in pixels.
638+
optional integer left
639+
# Offset of the top edge of the screen in pixels.
640+
optional integer top
641+
# The width of the screen in pixels.
642+
optional integer width
643+
# The height of the screen in pixels.
644+
optional integer height
645+
# Specifies the screen's work area.
646+
optional WorkAreaInsets workAreaInsets
647+
# Specifies the screen's device pixel ratio.
648+
optional number devicePixelRatio
649+
# Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270.
650+
optional integer rotation
651+
# Specifies the screen's color depth in bits.
652+
optional integer colorDepth
653+
# Specifies the descriptive label for the screen.
654+
optional string label
655+
# Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
656+
optional boolean isInternal
657+
returns
658+
ScreenInfo screenInfo
659+
616660
# Remove screen from the device. Only supported in headless mode.
617661
experimental command removeScreen
618662
parameters

types/protocol-mapping.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ export namespace ProtocolMapping {
306306
* @experimental
307307
*/
308308
'Emulation.virtualTimeBudgetExpired': [];
309+
/**
310+
* Fired when a page calls screen.orientation.lock() or screen.orientation.unlock()
311+
* while device emulation is enabled. This allows the DevTools frontend to update the
312+
* emulated device orientation accordingly.
313+
* @experimental
314+
*/
315+
'Emulation.screenOrientationLockChanged': [Protocol.Emulation.ScreenOrientationLockChangedEvent];
309316
'FedCm.dialogShown': [Protocol.FedCm.DialogShownEvent];
310317
/**
311318
* Triggered when a dialog is closed, either by user action, JS abort,
@@ -3583,6 +3590,14 @@ export namespace ProtocolMapping {
35833590
paramsType: [Protocol.Emulation.AddScreenRequest];
35843591
returnType: Protocol.Emulation.AddScreenResponse;
35853592
};
3593+
/**
3594+
* Updates specified screen parameters. Only supported in headless mode.
3595+
* @experimental
3596+
*/
3597+
'Emulation.updateScreen': {
3598+
paramsType: [Protocol.Emulation.UpdateScreenRequest];
3599+
returnType: Protocol.Emulation.UpdateScreenResponse;
3600+
};
35863601
/**
35873602
* Remove screen from the device. Only supported in headless mode.
35883603
* @experimental

0 commit comments

Comments
 (0)