devtools-protocol 0.0.961891 → 0.0.963595

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.
@@ -4844,7 +4844,20 @@
4844
4844
  },
4845
4845
  {
4846
4846
  "name": "enable",
4847
- "description": "Enables DOM agent for the given page."
4847
+ "description": "Enables DOM agent for the given page.",
4848
+ "parameters": [
4849
+ {
4850
+ "name": "includeWhitespace",
4851
+ "description": "Whether to include whitespaces in the children array of returned Nodes.",
4852
+ "experimental": true,
4853
+ "optional": true,
4854
+ "type": "string",
4855
+ "enum": [
4856
+ "none",
4857
+ "all"
4858
+ ]
4859
+ }
4860
+ ]
4848
4861
  },
4849
4862
  {
4850
4863
  "name": "focus",
@@ -8958,7 +8971,7 @@
8958
8971
  },
8959
8972
  {
8960
8973
  "name": "commands",
8961
- "description": "Editing commands to send with the key event (e.g., 'selectAll') (default: []).\nThese are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.\nSee https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.",
8974
+ "description": "Editing commands to send with the key event (e.g., 'selectAll') (default: []).\nThese are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.\nSee https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.",
8962
8975
  "experimental": true,
8963
8976
  "optional": true,
8964
8977
  "type": "array",
@@ -14705,6 +14718,7 @@
14705
14718
  "ch-ua-platform",
14706
14719
  "ch-ua-model",
14707
14720
  "ch-ua-mobile",
14721
+ "ch-ua-full",
14708
14722
  "ch-ua-full-version",
14709
14723
  "ch-ua-full-version-list",
14710
14724
  "ch-ua-platform-version",
@@ -15566,7 +15580,7 @@
15566
15580
  "experimental": true,
15567
15581
  "type": "string",
15568
15582
  "enum": [
15569
- "NotMainFrame",
15583
+ "NotPrimaryMainFrame",
15570
15584
  "BackForwardCacheDisabled",
15571
15585
  "RelatedActiveContentsExist",
15572
15586
  "HTTPStatusNotOK",
@@ -18489,7 +18503,7 @@
18489
18503
  },
18490
18504
  {
18491
18505
  "name": "expirationTime",
18492
- "type": "number"
18506
+ "$ref": "Network.TimeSinceEpoch"
18493
18507
  },
18494
18508
  {
18495
18509
  "name": "joiningOrigin",
@@ -18842,6 +18856,10 @@
18842
18856
  "name": "interestGroupAccessed",
18843
18857
  "description": "One of the interest groups was accessed by the associated page.",
18844
18858
  "parameters": [
18859
+ {
18860
+ "name": "accessTime",
18861
+ "$ref": "Network.TimeSinceEpoch"
18862
+ },
18845
18863
  {
18846
18864
  "name": "type",
18847
18865
  "$ref": "InterestGroupAccessType"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.961891",
3
+ "version": "0.0.963595",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2259,6 +2259,13 @@ domain DOM
2259
2259
 
2260
2260
  # Enables DOM agent for the given page.
2261
2261
  command enable
2262
+ parameters
2263
+ # Whether to include whitespaces in the children array of returned Nodes.
2264
+ experimental optional enum includeWhitespace
2265
+ # Strip whitespaces from child arrays (default).
2266
+ none
2267
+ # Return all children including block-level whitespace nodes.
2268
+ all
2262
2269
 
2263
2270
  # Focuses the given element.
2264
2271
  command focus
@@ -4074,7 +4081,7 @@ domain Input
4074
4081
  optional integer location
4075
4082
  # Editing commands to send with the key event (e.g., 'selectAll') (default: []).
4076
4083
  # These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.
4077
- # See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
4084
+ # See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
4078
4085
  experimental optional array of string commands
4079
4086
 
4080
4087
  # This method emulates inserting text that doesn't come from a key press,
@@ -6836,6 +6843,7 @@ domain Page
6836
6843
  ch-ua-platform
6837
6844
  ch-ua-model
6838
6845
  ch-ua-mobile
6846
+ ch-ua-full
6839
6847
  ch-ua-full-version
6840
6848
  ch-ua-full-version-list
6841
6849
  ch-ua-platform-version
@@ -7961,7 +7969,7 @@ domain Page
7961
7969
  # List of not restored reasons for back-forward cache.
7962
7970
  experimental type BackForwardCacheNotRestoredReason extends string
7963
7971
  enum
7964
- NotMainFrame
7972
+ NotPrimaryMainFrame
7965
7973
  BackForwardCacheDisabled
7966
7974
  RelatedActiveContentsExist
7967
7975
  HTTPStatusNotOK
@@ -8658,7 +8666,7 @@ experimental domain Storage
8658
8666
  properties
8659
8667
  string ownerOrigin
8660
8668
  string name
8661
- number expirationTime
8669
+ Network.TimeSinceEpoch expirationTime
8662
8670
  string joiningOrigin
8663
8671
  optional string biddingUrl
8664
8672
  optional string biddingWasmHelperUrl
@@ -8814,6 +8822,7 @@ experimental domain Storage
8814
8822
  # One of the interest groups was accessed by the associated page.
8815
8823
  event interestGroupAccessed
8816
8824
  parameters
8825
+ Network.TimeSinceEpoch accessTime
8817
8826
  InterestGroupAccessType type
8818
8827
  string ownerOrigin
8819
8828
  string name
@@ -1866,7 +1866,7 @@ export namespace ProtocolMapping {
1866
1866
  * Enables DOM agent for the given page.
1867
1867
  */
1868
1868
  'DOM.enable': {
1869
- paramsType: [];
1869
+ paramsType: [Protocol.DOM.EnableRequest?];
1870
1870
  returnType: void;
1871
1871
  };
1872
1872
  /**
@@ -1182,7 +1182,7 @@ export namespace ProtocolProxyApi {
1182
1182
  /**
1183
1183
  * Enables DOM agent for the given page.
1184
1184
  */
1185
- enable(): Promise<void>;
1185
+ enable(params: Protocol.DOM.EnableRequest): Promise<void>;
1186
1186
 
1187
1187
  /**
1188
1188
  * Focuses the given element.
@@ -5412,6 +5412,18 @@ export namespace Protocol {
5412
5412
  searchId: string;
5413
5413
  }
5414
5414
 
5415
+ export const enum EnableRequestIncludeWhitespace {
5416
+ None = 'none',
5417
+ All = 'all',
5418
+ }
5419
+
5420
+ export interface EnableRequest {
5421
+ /**
5422
+ * Whether to include whitespaces in the children array of returned Nodes. (EnableRequestIncludeWhitespace enum)
5423
+ */
5424
+ includeWhitespace?: ('none' | 'all');
5425
+ }
5426
+
5415
5427
  export interface FocusRequest {
5416
5428
  /**
5417
5429
  * Identifier of the node.
@@ -8068,7 +8080,7 @@ export namespace Protocol {
8068
8080
  /**
8069
8081
  * Editing commands to send with the key event (e.g., 'selectAll') (default: []).
8070
8082
  * These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.
8071
- * See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
8083
+ * See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
8072
8084
  */
8073
8085
  commands?: string[];
8074
8086
  }
@@ -11877,7 +11889,7 @@ export namespace Protocol {
11877
11889
  * All Permissions Policy features. This enum should match the one defined
11878
11890
  * in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
11879
11891
  */
11880
- export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-rtt' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-reduced' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'storage-access-api' | 'sync-xhr' | 'trust-token-redemption' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-placement' | 'xr-spatial-tracking');
11892
+ export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | 'autoplay' | 'camera' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-rtt' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-full' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-reduced' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'cross-origin-isolated' | 'direct-sockets' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'storage-access-api' | 'sync-xhr' | 'trust-token-redemption' | 'usb' | 'vertical-scroll' | 'web-share' | 'window-placement' | 'xr-spatial-tracking');
11881
11893
 
11882
11894
  /**
11883
11895
  * Reason for a permissions policy feature to be disabled.
@@ -12376,7 +12388,7 @@ export namespace Protocol {
12376
12388
  /**
12377
12389
  * List of not restored reasons for back-forward cache.
12378
12390
  */
12379
- export type BackForwardCacheNotRestoredReason = ('NotMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'GrantedMediaStreamAccess' | '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' | 'OptInUnloadHeaderNotPresent' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | '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' | 'ContentMediaSession' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame');
12391
+ export type BackForwardCacheNotRestoredReason = ('NotPrimaryMainFrame' | 'BackForwardCacheDisabled' | 'RelatedActiveContentsExist' | 'HTTPStatusNotOK' | 'SchemeNotHTTPOrHTTPS' | 'Loading' | 'WasGrantedMediaAccess' | 'DisableForRenderFrameHostCalled' | 'DomainNotAllowed' | 'HTTPMethodNotGET' | 'SubframeIsNavigating' | 'Timeout' | 'CacheLimit' | 'JavaScriptExecution' | 'RendererProcessKilled' | 'RendererProcessCrashed' | 'GrantedMediaStreamAccess' | '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' | 'OptInUnloadHeaderNotPresent' | 'UnloadHandlerExistsInMainFrame' | 'UnloadHandlerExistsInSubFrame' | 'ServiceWorkerUnregistration' | 'CacheControlNoStore' | 'CacheControlNoStoreCookieModified' | 'CacheControlNoStoreHTTPOnlyCookieModified' | 'NoResponseHead' | 'Unknown' | 'ActivationNavigationsDisallowedForBug1234857' | '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' | 'ContentMediaSession' | 'ContentMediaSessionService' | 'ContentScreenReader' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame');
12380
12392
 
12381
12393
  /**
12382
12394
  * Types of not restored reasons for back-forward cache.
@@ -14101,7 +14113,7 @@ export namespace Protocol {
14101
14113
  export interface InterestGroupDetails {
14102
14114
  ownerOrigin: string;
14103
14115
  name: string;
14104
- expirationTime: number;
14116
+ expirationTime: Network.TimeSinceEpoch;
14105
14117
  joiningOrigin: string;
14106
14118
  biddingUrl?: string;
14107
14119
  biddingWasmHelperUrl?: string;
@@ -14311,6 +14323,7 @@ export namespace Protocol {
14311
14323
  * One of the interest groups was accessed by the associated page.
14312
14324
  */
14313
14325
  export interface InterestGroupAccessedEvent {
14326
+ accessTime: Network.TimeSinceEpoch;
14314
14327
  type: InterestGroupAccessType;
14315
14328
  ownerOrigin: string;
14316
14329
  name: string;