Skip to content

Commit d4fc663

Browse files
committed
Roll protocol to r1449119
1 parent a38625f commit d4fc663

8 files changed

Lines changed: 86 additions & 5 deletions

changelog.md

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

22

3+
## Roll protocol to r1449119 — _2025-04-19T04:29:57.000Z_
4+
###### Diff: [`a38625f...fcc2bbf`](https://github.com/ChromeDevTools/devtools-protocol/compare/a38625f...fcc2bbf)
5+
6+
```diff
7+
@@ browser_protocol.pdl:4854 @@ domain Emulation
8+
# Whether the override should be enabled.
9+
boolean enabled
10+
11+
+ # Allows overriding the difference between the small and large viewport sizes, which determine the
12+
+ # value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
13+
+ experimental command setSmallViewportHeightDifferenceOverride
14+
+ parameters
15+
+ # This will cause an element of size 100svh to be `difference` pixels smaller than an element
16+
+ # of size 100lvh.
17+
+ integer difference
18+
+
19+
# This domain provides experimental commands only supported in headless mode.
20+
experimental domain HeadlessExperimental
21+
depends on Page
22+
@@ -9977,7 +9985,8 @@ domain Page
23+
RequestedByWebViewClient
24+
PostMessageByWebViewClient
25+
CacheControlNoStoreDeviceBoundSessionTerminated
26+
- CacheLimitPruned
27+
+ CacheLimitPrunedOnModerateMemoryPressure
28+
+ CacheLimitPrunedOnCriticalMemoryPressure
29+
30+
# Types of not restored reasons for back-forward cache.
31+
experimental type BackForwardCacheNotRestoredReasonType extends string
32+
```
33+
334
## Roll protocol to r1448144 — _2025-04-17T04:30:33.000Z_
4-
###### Diff: [`82e761e...0a4c91f`](https://github.com/ChromeDevTools/devtools-protocol/compare/82e761e...0a4c91f)
35+
###### Diff: [`82e761e...a38625f`](https://github.com/ChromeDevTools/devtools-protocol/compare/82e761e...a38625f)
536

637
```diff
738
@@ browser_protocol.pdl:11333 @@ experimental domain Storage

json/browser_protocol.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10461,6 +10461,18 @@
1046110461
"type": "boolean"
1046210462
}
1046310463
]
10464+
},
10465+
{
10466+
"name": "setSmallViewportHeightDifferenceOverride",
10467+
"description": "Allows overriding the difference between the small and large viewport sizes, which determine the\nvalue of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.",
10468+
"experimental": true,
10469+
"parameters": [
10470+
{
10471+
"name": "difference",
10472+
"description": "This will cause an element of size 100svh to be `difference` pixels smaller than an element\nof size 100lvh.",
10473+
"type": "integer"
10474+
}
10475+
]
1046410476
}
1046510477
],
1046610478
"events": [
@@ -19403,7 +19415,8 @@
1940319415
"RequestedByWebViewClient",
1940419416
"PostMessageByWebViewClient",
1940519417
"CacheControlNoStoreDeviceBoundSessionTerminated",
19406-
"CacheLimitPruned"
19418+
"CacheLimitPrunedOnModerateMemoryPressure",
19419+
"CacheLimitPrunedOnCriticalMemoryPressure"
1940719420
]
1940819421
},
1940919422
{

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.1448144",
3+
"version": "0.0.1449119",
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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4854,6 +4854,14 @@ domain Emulation
48544854
# Whether the override should be enabled.
48554855
boolean enabled
48564856

4857+
# Allows overriding the difference between the small and large viewport sizes, which determine the
4858+
# value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
4859+
experimental command setSmallViewportHeightDifferenceOverride
4860+
parameters
4861+
# This will cause an element of size 100svh to be `difference` pixels smaller than an element
4862+
# of size 100lvh.
4863+
integer difference
4864+
48574865
# This domain provides experimental commands only supported in headless mode.
48584866
experimental domain HeadlessExperimental
48594867
depends on Page
@@ -9977,7 +9985,8 @@ domain Page
99779985
RequestedByWebViewClient
99789986
PostMessageByWebViewClient
99799987
CacheControlNoStoreDeviceBoundSessionTerminated
9980-
CacheLimitPruned
9988+
CacheLimitPrunedOnModerateMemoryPressure
9989+
CacheLimitPrunedOnCriticalMemoryPressure
99819990

99829991
# Types of not restored reasons for back-forward cache.
99839992
experimental type BackForwardCacheNotRestoredReasonType extends string

types/protocol-mapping.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3030,6 +3030,14 @@ export namespace ProtocolMapping {
30303030
paramsType: [Protocol.Emulation.SetAutomationOverrideRequest];
30313031
returnType: void;
30323032
};
3033+
/**
3034+
* Allows overriding the difference between the small and large viewport sizes, which determine the
3035+
* value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
3036+
*/
3037+
'Emulation.setSmallViewportHeightDifferenceOverride': {
3038+
paramsType: [Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest];
3039+
returnType: void;
3040+
};
30333041
/**
30343042
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
30353043
* screenshot from the resulting frame. Requires that the target was created with enabled

types/protocol-proxy-api.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,12 @@ export namespace ProtocolProxyApi {
20672067
*/
20682068
setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest): Promise<void>;
20692069

2070+
/**
2071+
* Allows overriding the difference between the small and large viewport sizes, which determine the
2072+
* value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
2073+
*/
2074+
setSmallViewportHeightDifferenceOverride(params: Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest): Promise<void>;
2075+
20702076
/**
20712077
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
20722078
*/

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,6 +2191,12 @@ export namespace ProtocolTestsProxyApi {
21912191
*/
21922192
setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
21932193

2194+
/**
2195+
* Allows overriding the difference between the small and large viewport sizes, which determine the
2196+
* value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
2197+
*/
2198+
setSmallViewportHeightDifferenceOverride(params: Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2199+
21942200
/**
21952201
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
21962202
*/

types/protocol.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8962,6 +8962,14 @@ export namespace Protocol {
89628962
*/
89638963
enabled: boolean;
89648964
}
8965+
8966+
export interface SetSmallViewportHeightDifferenceOverrideRequest {
8967+
/**
8968+
* This will cause an element of size 100svh to be `difference` pixels smaller than an element
8969+
* of size 100lvh.
8970+
*/
8971+
difference: integer;
8972+
}
89658973
}
89668974

89678975
/**
@@ -14542,7 +14550,7 @@ export namespace Protocol {
1454214550
/**
1454314551
* List of not restored reasons for back-forward cache.
1454414552
*/
14545-
export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'SchedulerTrackedFeatureUsed' | 'ConflictingBrowsingInstance' | 'CacheFlushed' | 'ServiceWorkerVersionActivation' | 'SessionRestored' | 'ServiceWorkerPostMessage' | 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded' | 'RenderFrameHostReused_SameSite' | 'RenderFrameHostReused_CrossSite' | 'ServiceWorkerClaim' | 'IgnoreEventAndEvict' | 'HaveInnerContents' | 'TimeoutPuttingInCache' | 'BackForwardCacheDisabledByLowMemory' | 'BackForwardCacheDisabledByCommandLine' | 'NetworkRequestDatapipeDrainedAsBytesConsumer' | 'NetworkRequestRedirected' | 'NetworkRequestTimeout' | 'NetworkExceedsBufferLimit' | 'NavigationCancelledWhileRestoring' | 'NotMostRecentNavigationEntry' | 'BackForwardCacheDisabledForPrerender' | 'UserAgentOverrideDiffers' | 'ForegroundCacheLimit' | 'BrowsingInstanceNotSwapped' | 'BackForwardCacheDisabledForDelegate' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | 'ErrorDocument' | 'FencedFramesEmbedder' | 'CookieDisabled' | 'HTTPAuthRequired' | 'CookieFlushed' | 'BroadcastChannelOnMessage' | 'WebViewSettingsChanged' | 'WebViewJavaScriptObjectChanged' | 'WebViewMessageListenerInjected' | 'WebViewSafeBrowsingAllowlistChanged' | 'WebViewDocumentStartJavascriptChanged' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'OutstandingNetworkRequestOthers' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'WebXR' | 'SharedWorker' | 'WebLocks' | 'WebHID' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'KeepaliveRequest' | 'IndexedDBEvent' | 'Dummy' | 'JsNetworkRequestReceivedCacheControlNoStoreResource' | 'WebRTCSticky' | 'WebTransportSticky' | 'WebSocketSticky' | 'SmartCard' | 'LiveMediaStreamTrack' | 'UnloadHandler' | 'ParserAborted' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'ContentDiscarded' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame' | 'RequestedByWebViewClient' | 'PostMessageByWebViewClient' | 'CacheControlNoStoreDeviceBoundSessionTerminated' | 'CacheLimitPruned');
14553+
export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'SchedulerTrackedFeatureUsed' | 'ConflictingBrowsingInstance' | 'CacheFlushed' | 'ServiceWorkerVersionActivation' | 'SessionRestored' | 'ServiceWorkerPostMessage' | 'EnteredBackForwardCacheBeforeServiceWorkerHostAdded' | 'RenderFrameHostReused_SameSite' | 'RenderFrameHostReused_CrossSite' | 'ServiceWorkerClaim' | 'IgnoreEventAndEvict' | 'HaveInnerContents' | 'TimeoutPuttingInCache' | 'BackForwardCacheDisabledByLowMemory' | 'BackForwardCacheDisabledByCommandLine' | 'NetworkRequestDatapipeDrainedAsBytesConsumer' | 'NetworkRequestRedirected' | 'NetworkRequestTimeout' | 'NetworkExceedsBufferLimit' | 'NavigationCancelledWhileRestoring' | 'NotMostRecentNavigationEntry' | 'BackForwardCacheDisabledForPrerender' | 'UserAgentOverrideDiffers' | 'ForegroundCacheLimit' | 'BrowsingInstanceNotSwapped' | 'BackForwardCacheDisabledForDelegate' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | 'ErrorDocument' | 'FencedFramesEmbedder' | 'CookieDisabled' | 'HTTPAuthRequired' | 'CookieFlushed' | 'BroadcastChannelOnMessage' | 'WebViewSettingsChanged' | 'WebViewJavaScriptObjectChanged' | 'WebViewMessageListenerInjected' | 'WebViewSafeBrowsingAllowlistChanged' | 'WebViewDocumentStartJavascriptChanged' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'OutstandingNetworkRequestOthers' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'WebXR' | 'SharedWorker' | 'WebLocks' | 'WebHID' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'KeepaliveRequest' | 'IndexedDBEvent' | 'Dummy' | 'JsNetworkRequestReceivedCacheControlNoStoreResource' | 'WebRTCSticky' | 'WebTransportSticky' | 'WebSocketSticky' | 'SmartCard' | 'LiveMediaStreamTrack' | 'UnloadHandler' | 'ParserAborted' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'ContentDiscarded' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame' | 'RequestedByWebViewClient' | 'PostMessageByWebViewClient' | 'CacheControlNoStoreDeviceBoundSessionTerminated' | 'CacheLimitPrunedOnModerateMemoryPressure' | 'CacheLimitPrunedOnCriticalMemoryPressure');
1454614554

1454714555
/**
1454814556
* Types of not restored reasons for back-forward cache.

0 commit comments

Comments
 (0)