devtools-protocol 0.0.1060866 → 0.0.1061995
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +16 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +7 -1
- package/types/protocol.d.ts +11 -2
@@ -8523,7 +8523,8 @@
|
|
8523
8523
|
"type": "string",
|
8524
8524
|
"enum": [
|
8525
8525
|
"jpeg",
|
8526
|
-
"png"
|
8526
|
+
"png",
|
8527
|
+
"webp"
|
8527
8528
|
]
|
8528
8529
|
},
|
8529
8530
|
{
|
@@ -8531,6 +8532,12 @@
|
|
8531
8532
|
"description": "Compression quality from range [0..100] (jpeg only).",
|
8532
8533
|
"optional": true,
|
8533
8534
|
"type": "integer"
|
8535
|
+
},
|
8536
|
+
{
|
8537
|
+
"name": "optimizeForSpeed",
|
8538
|
+
"description": "Optimize image encoding for speed, not for resulting size (defaults to false)",
|
8539
|
+
"optional": true,
|
8540
|
+
"type": "boolean"
|
8534
8541
|
}
|
8535
8542
|
]
|
8536
8543
|
}
|
@@ -16226,6 +16233,7 @@
|
|
16226
16233
|
"OutstandingNetworkRequestDirectSocket",
|
16227
16234
|
"InjectedJavascript",
|
16228
16235
|
"InjectedStyleSheet",
|
16236
|
+
"KeepaliveRequest",
|
16229
16237
|
"Dummy",
|
16230
16238
|
"ContentSecurityHandler",
|
16231
16239
|
"ContentWebAuthenticationAPI",
|
@@ -16458,6 +16466,13 @@
|
|
16458
16466
|
"experimental": true,
|
16459
16467
|
"optional": true,
|
16460
16468
|
"type": "boolean"
|
16469
|
+
},
|
16470
|
+
{
|
16471
|
+
"name": "optimizeForSpeed",
|
16472
|
+
"description": "Optimize image encoding for speed, not for resulting size (defaults to false)",
|
16473
|
+
"experimental": true,
|
16474
|
+
"optional": true,
|
16475
|
+
"type": "boolean"
|
16461
16476
|
}
|
16462
16477
|
],
|
16463
16478
|
"returns": [
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -3908,8 +3908,11 @@ experimental domain HeadlessExperimental
|
|
3908
3908
|
optional enum format
|
3909
3909
|
jpeg
|
3910
3910
|
png
|
3911
|
+
webp
|
3911
3912
|
# Compression quality from range [0..100] (jpeg only).
|
3912
3913
|
optional integer quality
|
3914
|
+
# Optimize image encoding for speed, not for resulting size (defaults to false)
|
3915
|
+
optional boolean optimizeForSpeed
|
3913
3916
|
|
3914
3917
|
# Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
3915
3918
|
# screenshot from the resulting frame. Requires that the target was created with enabled
|
@@ -7595,6 +7598,8 @@ domain Page
|
|
7595
7598
|
experimental optional boolean fromSurface
|
7596
7599
|
# Capture the screenshot beyond the viewport. Defaults to false.
|
7597
7600
|
experimental optional boolean captureBeyondViewport
|
7601
|
+
# Optimize image encoding for speed, not for resulting size (defaults to false)
|
7602
|
+
experimental optional boolean optimizeForSpeed
|
7598
7603
|
returns
|
7599
7604
|
# Base64-encoded image data.
|
7600
7605
|
binary data
|
@@ -8384,8 +8389,9 @@ domain Page
|
|
8384
8389
|
OutstandingNetworkRequestDirectSocket
|
8385
8390
|
InjectedJavascript
|
8386
8391
|
InjectedStyleSheet
|
8392
|
+
KeepaliveRequest
|
8387
8393
|
Dummy
|
8388
|
-
# Disabled for
|
8394
|
+
# Disabled for RenderFrameHost reasons
|
8389
8395
|
# See content/browser/renderer_host/back_forward_cache_disable.h for explanations.
|
8390
8396
|
ContentSecurityHandler
|
8391
8397
|
ContentWebAuthenticationAPI
|
package/types/protocol.d.ts
CHANGED
@@ -7787,6 +7787,7 @@ export namespace Protocol {
|
|
7787
7787
|
export const enum ScreenshotParamsFormat {
|
7788
7788
|
Jpeg = 'jpeg',
|
7789
7789
|
Png = 'png',
|
7790
|
+
Webp = 'webp',
|
7790
7791
|
}
|
7791
7792
|
|
7792
7793
|
/**
|
@@ -7796,11 +7797,15 @@ export namespace Protocol {
|
|
7796
7797
|
/**
|
7797
7798
|
* Image compression format (defaults to png). (ScreenshotParamsFormat enum)
|
7798
7799
|
*/
|
7799
|
-
format?: ('jpeg' | 'png');
|
7800
|
+
format?: ('jpeg' | 'png' | 'webp');
|
7800
7801
|
/**
|
7801
7802
|
* Compression quality from range [0..100] (jpeg only).
|
7802
7803
|
*/
|
7803
7804
|
quality?: integer;
|
7805
|
+
/**
|
7806
|
+
* Optimize image encoding for speed, not for resulting size (defaults to false)
|
7807
|
+
*/
|
7808
|
+
optimizeForSpeed?: boolean;
|
7804
7809
|
}
|
7805
7810
|
|
7806
7811
|
export interface BeginFrameRequest {
|
@@ -12792,7 +12797,7 @@ export namespace Protocol {
|
|
12792
12797
|
/**
|
12793
12798
|
* List of not restored reasons for back-forward cache.
|
12794
12799
|
*/
|
12795
|
-
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' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'DedicatedWorkerOrWorklet' | 'OutstandingNetworkRequestOthers' | 'OutstandingIndexedDBTransaction' | 'RequestedNotificationsPermission' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'IndexedDBConnection' | 'WebXR' | 'SharedWorker' | 'WebLocks' | 'WebHID' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'Portal' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'Dummy' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame');
|
12800
|
+
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' | 'WebSocket' | 'WebTransport' | 'WebRTC' | 'MainResourceHasCacheControlNoStore' | 'MainResourceHasCacheControlNoCache' | 'SubresourceHasCacheControlNoStore' | 'SubresourceHasCacheControlNoCache' | 'ContainsPlugins' | 'DocumentLoaded' | 'DedicatedWorkerOrWorklet' | 'OutstandingNetworkRequestOthers' | 'OutstandingIndexedDBTransaction' | 'RequestedNotificationsPermission' | 'RequestedMIDIPermission' | 'RequestedAudioCapturePermission' | 'RequestedVideoCapturePermission' | 'RequestedBackForwardCacheBlockedSensors' | 'RequestedBackgroundWorkPermission' | 'BroadcastChannel' | 'IndexedDBConnection' | 'WebXR' | 'SharedWorker' | 'WebLocks' | 'WebHID' | 'WebShare' | 'RequestedStorageAccessGrant' | 'WebNfc' | 'OutstandingNetworkRequestFetch' | 'OutstandingNetworkRequestXHR' | 'AppBanner' | 'Printing' | 'WebDatabase' | 'PictureInPicture' | 'Portal' | 'SpeechRecognizer' | 'IdleManager' | 'PaymentManager' | 'SpeechSynthesis' | 'KeyboardLock' | 'WebOTPService' | 'OutstandingNetworkRequestDirectSocket' | 'InjectedJavascript' | 'InjectedStyleSheet' | 'KeepaliveRequest' | 'Dummy' | 'ContentSecurityHandler' | 'ContentWebAuthenticationAPI' | 'ContentFileChooser' | 'ContentSerial' | 'ContentFileSystemAccess' | 'ContentMediaDevicesDispatcherHost' | 'ContentWebBluetooth' | 'ContentWebUSB' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame');
|
12796
12801
|
|
12797
12802
|
/**
|
12798
12803
|
* Types of not restored reasons for back-forward cache.
|
@@ -12896,6 +12901,10 @@ export namespace Protocol {
|
|
12896
12901
|
* Capture the screenshot beyond the viewport. Defaults to false.
|
12897
12902
|
*/
|
12898
12903
|
captureBeyondViewport?: boolean;
|
12904
|
+
/**
|
12905
|
+
* Optimize image encoding for speed, not for resulting size (defaults to false)
|
12906
|
+
*/
|
12907
|
+
optimizeForSpeed?: boolean;
|
12899
12908
|
}
|
12900
12909
|
|
12901
12910
|
export interface CaptureScreenshotResponse {
|