devtools-protocol 0.0.1291694 → 0.0.1292262

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.
@@ -6644,6 +6644,33 @@
6644
6644
  }
6645
6645
  ]
6646
6646
  },
6647
+ {
6648
+ "name": "getElementByRelation",
6649
+ "description": "Returns the NodeId of the matched element according to certain relations.",
6650
+ "experimental": true,
6651
+ "parameters": [
6652
+ {
6653
+ "name": "nodeId",
6654
+ "description": "Id of the node from which to query the relation.",
6655
+ "$ref": "NodeId"
6656
+ },
6657
+ {
6658
+ "name": "relation",
6659
+ "description": "Type of relation to get.",
6660
+ "type": "string",
6661
+ "enum": [
6662
+ "PopoverTarget"
6663
+ ]
6664
+ }
6665
+ ],
6666
+ "returns": [
6667
+ {
6668
+ "name": "nodeId",
6669
+ "description": "NodeId of the element matching the queried relation.",
6670
+ "$ref": "NodeId"
6671
+ }
6672
+ ]
6673
+ },
6647
6674
  {
6648
6675
  "name": "redo",
6649
6676
  "description": "Re-does the last undone action.",
@@ -18081,7 +18108,8 @@
18081
18108
  "EmbedderExtensions",
18082
18109
  "EmbedderExtensionMessaging",
18083
18110
  "EmbedderExtensionMessagingForOpenPort",
18084
- "EmbedderExtensionSentMessageToCachedFrame"
18111
+ "EmbedderExtensionSentMessageToCachedFrame",
18112
+ "RequestedByWebViewClient"
18085
18113
  ]
18086
18114
  },
18087
18115
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1291694",
3
+ "version": "0.0.1292262",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -3132,6 +3132,20 @@ domain DOM
3132
3132
  # NodeIds of top layer elements
3133
3133
  array of NodeId nodeIds
3134
3134
 
3135
+ # Returns the NodeId of the matched element according to certain relations.
3136
+ experimental command getElementByRelation
3137
+ parameters
3138
+ # Id of the node from which to query the relation.
3139
+ NodeId nodeId
3140
+ # Type of relation to get.
3141
+ enum relation
3142
+ # Get the popover target for a given element. In this case, this given
3143
+ # element can only be an HTMLFormControlElement (<input>, <button>).
3144
+ PopoverTarget
3145
+ returns
3146
+ # NodeId of the element matching the queried relation.
3147
+ NodeId nodeId
3148
+
3135
3149
  # Re-does the last undone action.
3136
3150
  experimental command redo
3137
3151
 
@@ -9267,6 +9281,7 @@ domain Page
9267
9281
  EmbedderExtensionMessaging
9268
9282
  EmbedderExtensionMessagingForOpenPort
9269
9283
  EmbedderExtensionSentMessageToCachedFrame
9284
+ RequestedByWebViewClient
9270
9285
 
9271
9286
  # Types of not restored reasons for back-forward cache.
9272
9287
  experimental type BackForwardCacheNotRestoredReasonType extends string
@@ -2226,6 +2226,13 @@ export namespace ProtocolMapping {
2226
2226
  paramsType: [];
2227
2227
  returnType: Protocol.DOM.GetTopLayerElementsResponse;
2228
2228
  };
2229
+ /**
2230
+ * Returns the NodeId of the matched element according to certain relations.
2231
+ */
2232
+ 'DOM.getElementByRelation': {
2233
+ paramsType: [Protocol.DOM.GetElementByRelationRequest];
2234
+ returnType: Protocol.DOM.GetElementByRelationResponse;
2235
+ };
2229
2236
  /**
2230
2237
  * Re-does the last undone action.
2231
2238
  */
@@ -1422,6 +1422,11 @@ export namespace ProtocolProxyApi {
1422
1422
  */
1423
1423
  getTopLayerElements(): Promise<Protocol.DOM.GetTopLayerElementsResponse>;
1424
1424
 
1425
+ /**
1426
+ * Returns the NodeId of the matched element according to certain relations.
1427
+ */
1428
+ getElementByRelation(params: Protocol.DOM.GetElementByRelationRequest): Promise<Protocol.DOM.GetElementByRelationResponse>;
1429
+
1425
1430
  /**
1426
1431
  * Re-does the last undone action.
1427
1432
  */
@@ -1504,6 +1504,11 @@ export namespace ProtocolTestsProxyApi {
1504
1504
  */
1505
1505
  getTopLayerElements(): Promise<{id: number, result: Protocol.DOM.GetTopLayerElementsResponse, sessionId: string}>;
1506
1506
 
1507
+ /**
1508
+ * Returns the NodeId of the matched element according to certain relations.
1509
+ */
1510
+ getElementByRelation(params: Protocol.DOM.GetElementByRelationRequest): Promise<{id: number, result: Protocol.DOM.GetElementByRelationResponse, sessionId: string}>;
1511
+
1507
1512
  /**
1508
1513
  * Re-does the last undone action.
1509
1514
  */
@@ -6678,6 +6678,28 @@ export namespace Protocol {
6678
6678
  nodeIds: NodeId[];
6679
6679
  }
6680
6680
 
6681
+ export const enum GetElementByRelationRequestRelation {
6682
+ PopoverTarget = 'PopoverTarget',
6683
+ }
6684
+
6685
+ export interface GetElementByRelationRequest {
6686
+ /**
6687
+ * Id of the node from which to query the relation.
6688
+ */
6689
+ nodeId: NodeId;
6690
+ /**
6691
+ * Type of relation to get. (GetElementByRelationRequestRelation enum)
6692
+ */
6693
+ relation: ('PopoverTarget');
6694
+ }
6695
+
6696
+ export interface GetElementByRelationResponse {
6697
+ /**
6698
+ * NodeId of the element matching the queried relation.
6699
+ */
6700
+ nodeId: NodeId;
6701
+ }
6702
+
6681
6703
  export interface RemoveAttributeRequest {
6682
6704
  /**
6683
6705
  * Id of the element to remove attribute from.
@@ -13798,7 +13820,7 @@ export namespace Protocol {
13798
13820
  /**
13799
13821
  * List of not restored reasons for back-forward cache.
13800
13822
  */
13801
- 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' | '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' | 'Portal' | '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' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame');
13823
+ 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' | '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' | 'Portal' | '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' | 'EmbedderPopupBlockerTabHelper' | 'EmbedderSafeBrowsingTriggeredPopupBlocker' | 'EmbedderSafeBrowsingThreatDetails' | 'EmbedderAppBannerManager' | 'EmbedderDomDistillerViewerSource' | 'EmbedderDomDistillerSelfDeletingRequestDelegate' | 'EmbedderOomInterventionTabHelper' | 'EmbedderOfflinePage' | 'EmbedderChromePasswordManagerClientBindCredentialManager' | 'EmbedderPermissionRequestManager' | 'EmbedderModalDialog' | 'EmbedderExtensions' | 'EmbedderExtensionMessaging' | 'EmbedderExtensionMessagingForOpenPort' | 'EmbedderExtensionSentMessageToCachedFrame' | 'RequestedByWebViewClient');
13802
13824
 
13803
13825
  /**
13804
13826
  * Types of not restored reasons for back-forward cache.