mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
Update DevTools Protocol
Bug: none Change-Id: I27ceaf534ab58d35f692ed217c308371e493a710 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3093149 Reviewed-by: Sigurd Schneider <sigurds@chromium.org> Commit-Queue: Johan Bay <jobay@chromium.org>
This commit is contained in:
committed by
Devtools-frontend LUCI CQ
parent
ec2f9f3c4f
commit
90801494ca
@@ -109,9 +109,16 @@ export function registerCommands(inspectorBackend) {
|
||||
],
|
||||
['nodes']);
|
||||
inspectorBackend.registerCommand(
|
||||
'Accessibility.getFullAXTree', [{'name': 'max_depth', 'type': 'number', 'optional': true}], ['nodes']);
|
||||
'Accessibility.getFullAXTree',
|
||||
[
|
||||
{'name': 'max_depth', 'type': 'number', 'optional': true},
|
||||
{'name': 'frameId', 'type': 'string', 'optional': true}
|
||||
],
|
||||
['nodes']);
|
||||
inspectorBackend.registerCommand(
|
||||
'Accessibility.getChildAXNodes', [{'name': 'id', 'type': 'string', 'optional': false}], ['nodes']);
|
||||
'Accessibility.getChildAXNodes',
|
||||
[{'name': 'id', 'type': 'string', 'optional': false}, {'name': 'frameId', 'type': 'string', 'optional': true}],
|
||||
['nodes']);
|
||||
inspectorBackend.registerCommand(
|
||||
'Accessibility.queryAXTree',
|
||||
[
|
||||
@@ -2095,7 +2102,10 @@ export function registerCommands(inspectorBackend) {
|
||||
CacheControlNoStoreCookieModified: 'CacheControlNoStoreCookieModified',
|
||||
CacheControlNoStoreHTTPOnlyCookieModified: 'CacheControlNoStoreHTTPOnlyCookieModified',
|
||||
NoResponseHead: 'NoResponseHead',
|
||||
Unknown: 'Unknown',
|
||||
ActivationNavigationsDisallowedForBug1234857: 'ActivationNavigationsDisallowedForBug1234857',
|
||||
WebSocket: 'WebSocket',
|
||||
WebTransport: 'WebTransport',
|
||||
WebRTC: 'WebRTC',
|
||||
MainResourceHasCacheControlNoStore: 'MainResourceHasCacheControlNoStore',
|
||||
MainResourceHasCacheControlNoCache: 'MainResourceHasCacheControlNoCache',
|
||||
@@ -2139,7 +2149,15 @@ export function registerCommands(inspectorBackend) {
|
||||
IsolatedWorldScript: 'IsolatedWorldScript',
|
||||
InjectedStyleSheet: 'InjectedStyleSheet',
|
||||
MediaSessionImplOnServiceCreated: 'MediaSessionImplOnServiceCreated',
|
||||
Unknown: 'Unknown'
|
||||
SecurityHandler: 'SecurityHandler',
|
||||
WebAuthenticationAPI: 'WebAuthenticationAPI',
|
||||
FileChooser: 'FileChooser',
|
||||
Serial: 'Serial',
|
||||
FileSystemAccess: 'FileSystemAccess',
|
||||
MediaDevicesDispatcherHost: 'MediaDevicesDispatcherHost',
|
||||
WebBluetooth: 'WebBluetooth',
|
||||
WebUSB: 'WebUSB',
|
||||
MediaSession: 'MediaSession'
|
||||
});
|
||||
inspectorBackend.registerEnum(
|
||||
'Page.BackForwardCacheNotRestoredReasonType',
|
||||
@@ -2647,6 +2665,13 @@ export function registerCommands(inspectorBackend) {
|
||||
{'name': 'flatten', 'type': 'boolean', 'optional': true}
|
||||
],
|
||||
[]);
|
||||
inspectorBackend.registerCommand(
|
||||
'Target.autoAttachRelated',
|
||||
[
|
||||
{'name': 'targetId', 'type': 'string', 'optional': false},
|
||||
{'name': 'waitForDebuggerOnStart', 'type': 'boolean', 'optional': false}
|
||||
],
|
||||
[]);
|
||||
inspectorBackend.registerCommand(
|
||||
'Target.setDiscoverTargets', [{'name': 'discover', 'type': 'boolean', 'optional': false}], []);
|
||||
inspectorBackend.registerCommand(
|
||||
|
||||
+9
@@ -2547,8 +2547,17 @@ export namespace ProtocolMapping {
|
||||
* Controls whether to automatically attach to new targets which are considered to be related to
|
||||
* this one. When turned on, attaches to all existing related targets as well. When turned off,
|
||||
* automatically detaches from all currently attached targets.
|
||||
* This also clears all targets added by `autoAttachRelated` from the list of targets to watch
|
||||
* for creation of related targets.
|
||||
*/
|
||||
'Target.setAutoAttach': {paramsType: [Protocol.Target.SetAutoAttachRequest]; returnType: void;};
|
||||
/**
|
||||
* Adds the specified target to the list of targets that will be monitored for any related target
|
||||
* creation (such as child frames, child workers and new versions of service worker) and reported
|
||||
* through `attachedToTarget`. This cancel the effect of any previous `setAutoAttach` and is also
|
||||
* cancelled by subsequent `setAutoAttach`. Only available at the Browser target.
|
||||
*/
|
||||
'Target.autoAttachRelated': {paramsType: [Protocol.Target.AutoAttachRelatedRequest]; returnType: void;};
|
||||
/**
|
||||
* Controls whether to discover available targets and notify via
|
||||
* `targetCreated/targetInfoChanged/targetDestroyed` events.
|
||||
|
||||
+11
@@ -3110,9 +3110,20 @@ declare namespace ProtocolProxyApi {
|
||||
* Controls whether to automatically attach to new targets which are considered to be related to
|
||||
* this one. When turned on, attaches to all existing related targets as well. When turned off,
|
||||
* automatically detaches from all currently attached targets.
|
||||
* This also clears all targets added by `autoAttachRelated` from the list of targets to watch
|
||||
* for creation of related targets.
|
||||
*/
|
||||
invoke_setAutoAttach(params: Protocol.Target.SetAutoAttachRequest): Promise<Protocol.ProtocolResponseWithError>;
|
||||
|
||||
/**
|
||||
* Adds the specified target to the list of targets that will be monitored for any related target
|
||||
* creation (such as child frames, child workers and new versions of service worker) and reported
|
||||
* through `attachedToTarget`. This cancel the effect of any previous `setAutoAttach` and is also
|
||||
* cancelled by subsequent `setAutoAttach`. Only available at the Browser target.
|
||||
*/
|
||||
invoke_autoAttachRelated(params: Protocol.Target.AutoAttachRelatedRequest):
|
||||
Promise<Protocol.ProtocolResponseWithError>;
|
||||
|
||||
/**
|
||||
* Controls whether to discover available targets and notify via
|
||||
* `targetCreated/targetInfoChanged/targetDestroyed` events.
|
||||
|
||||
Vendored
+31
-1
@@ -294,6 +294,11 @@ declare namespace Protocol {
|
||||
* If omitted, the full tree is returned.
|
||||
*/
|
||||
max_depth?: integer;
|
||||
/**
|
||||
* The frame for whose document the AX tree should be retrieved.
|
||||
* If omited, the root frame is used.
|
||||
*/
|
||||
frameId?: Page.FrameId;
|
||||
}
|
||||
|
||||
export interface GetFullAXTreeResponse extends ProtocolResponseWithError {
|
||||
@@ -302,6 +307,11 @@ declare namespace Protocol {
|
||||
|
||||
export interface GetChildAXNodesRequest {
|
||||
id: AXNodeId;
|
||||
/**
|
||||
* The frame in whose document the node resides.
|
||||
* If omitted, the root frame is used.
|
||||
*/
|
||||
frameId?: Page.FrameId;
|
||||
}
|
||||
|
||||
export interface GetChildAXNodesResponse extends ProtocolResponseWithError {
|
||||
@@ -10393,7 +10403,10 @@ declare namespace Protocol {
|
||||
CacheControlNoStoreCookieModified = 'CacheControlNoStoreCookieModified',
|
||||
CacheControlNoStoreHTTPOnlyCookieModified = 'CacheControlNoStoreHTTPOnlyCookieModified',
|
||||
NoResponseHead = 'NoResponseHead',
|
||||
Unknown = 'Unknown',
|
||||
ActivationNavigationsDisallowedForBug1234857 = 'ActivationNavigationsDisallowedForBug1234857',
|
||||
WebSocket = 'WebSocket',
|
||||
WebTransport = 'WebTransport',
|
||||
WebRTC = 'WebRTC',
|
||||
MainResourceHasCacheControlNoStore = 'MainResourceHasCacheControlNoStore',
|
||||
MainResourceHasCacheControlNoCache = 'MainResourceHasCacheControlNoCache',
|
||||
@@ -10437,7 +10450,15 @@ declare namespace Protocol {
|
||||
IsolatedWorldScript = 'IsolatedWorldScript',
|
||||
InjectedStyleSheet = 'InjectedStyleSheet',
|
||||
MediaSessionImplOnServiceCreated = 'MediaSessionImplOnServiceCreated',
|
||||
Unknown = 'Unknown',
|
||||
SecurityHandler = 'SecurityHandler',
|
||||
WebAuthenticationAPI = 'WebAuthenticationAPI',
|
||||
FileChooser = 'FileChooser',
|
||||
Serial = 'Serial',
|
||||
FileSystemAccess = 'FileSystemAccess',
|
||||
MediaDevicesDispatcherHost = 'MediaDevicesDispatcherHost',
|
||||
WebBluetooth = 'WebBluetooth',
|
||||
WebUSB = 'WebUSB',
|
||||
MediaSession = 'MediaSession',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12764,6 +12785,15 @@ declare namespace Protocol {
|
||||
flatten?: boolean;
|
||||
}
|
||||
|
||||
export interface AutoAttachRelatedRequest {
|
||||
targetId: TargetID;
|
||||
/**
|
||||
* Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
|
||||
* to run paused targets.
|
||||
*/
|
||||
waitForDebuggerOnStart: boolean;
|
||||
}
|
||||
|
||||
export interface SetDiscoverTargetsRequest {
|
||||
/**
|
||||
* Whether to discover available targets.
|
||||
|
||||
@@ -381,6 +381,12 @@
|
||||
"description": "The maximum depth at which descendants of the root node should be retrieved.\nIf omitted, the full tree is returned.",
|
||||
"optional": true,
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"name": "frameId",
|
||||
"description": "The frame for whose document the AX tree should be retrieved.\nIf omited, the root frame is used.",
|
||||
"optional": true,
|
||||
"$ref": "Page.FrameId"
|
||||
}
|
||||
],
|
||||
"returns": [
|
||||
@@ -401,6 +407,12 @@
|
||||
{
|
||||
"name": "id",
|
||||
"$ref": "AXNodeId"
|
||||
},
|
||||
{
|
||||
"name": "frameId",
|
||||
"description": "The frame in whose document the node resides.\nIf omitted, the root frame is used.",
|
||||
"optional": true,
|
||||
"$ref": "Page.FrameId"
|
||||
}
|
||||
],
|
||||
"returns": [
|
||||
@@ -15258,7 +15270,10 @@
|
||||
"CacheControlNoStoreCookieModified",
|
||||
"CacheControlNoStoreHTTPOnlyCookieModified",
|
||||
"NoResponseHead",
|
||||
"Unknown",
|
||||
"ActivationNavigationsDisallowedForBug1234857",
|
||||
"WebSocket",
|
||||
"WebTransport",
|
||||
"WebRTC",
|
||||
"MainResourceHasCacheControlNoStore",
|
||||
"MainResourceHasCacheControlNoCache",
|
||||
@@ -15302,7 +15317,15 @@
|
||||
"IsolatedWorldScript",
|
||||
"InjectedStyleSheet",
|
||||
"MediaSessionImplOnServiceCreated",
|
||||
"Unknown"
|
||||
"SecurityHandler",
|
||||
"WebAuthenticationAPI",
|
||||
"FileChooser",
|
||||
"Serial",
|
||||
"FileSystemAccess",
|
||||
"MediaDevicesDispatcherHost",
|
||||
"WebBluetooth",
|
||||
"WebUSB",
|
||||
"MediaSession"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -18900,7 +18923,7 @@
|
||||
},
|
||||
{
|
||||
"name": "setAutoAttach",
|
||||
"description": "Controls whether to automatically attach to new targets which are considered to be related to\nthis one. When turned on, attaches to all existing related targets as well. When turned off,\nautomatically detaches from all currently attached targets.",
|
||||
"description": "Controls whether to automatically attach to new targets which are considered to be related to\nthis one. When turned on, attaches to all existing related targets as well. When turned off,\nautomatically detaches from all currently attached targets.\nThis also clears all targets added by `autoAttachRelated` from the list of targets to watch\nfor creation of related targets.",
|
||||
"experimental": true,
|
||||
"parameters": [
|
||||
{
|
||||
@@ -18921,6 +18944,22 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "autoAttachRelated",
|
||||
"description": "Adds the specified target to the list of targets that will be monitored for any related target\ncreation (such as child frames, child workers and new versions of service worker) and reported\nthrough `attachedToTarget`. This cancel the effect of any previous `setAutoAttach` and is also\ncancelled by subsequent `setAutoAttach`. Only available at the Browser target.",
|
||||
"experimental": true,
|
||||
"parameters": [
|
||||
{
|
||||
"name": "targetId",
|
||||
"$ref": "TargetID"
|
||||
},
|
||||
{
|
||||
"name": "waitForDebuggerOnStart",
|
||||
"description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setDiscoverTargets",
|
||||
"description": "Controls whether to discover available targets and notify via\n`targetCreated/targetInfoChanged/targetDestroyed` events.",
|
||||
|
||||
@@ -209,6 +209,9 @@ experimental domain Accessibility
|
||||
# The maximum depth at which descendants of the root node should be retrieved.
|
||||
# If omitted, the full tree is returned.
|
||||
optional integer max_depth
|
||||
# The frame for whose document the AX tree should be retrieved.
|
||||
# If omited, the root frame is used.
|
||||
optional Page.FrameId frameId
|
||||
returns
|
||||
array of AXNode nodes
|
||||
|
||||
@@ -217,6 +220,9 @@ experimental domain Accessibility
|
||||
experimental command getChildAXNodes
|
||||
parameters
|
||||
AXNodeId id
|
||||
# The frame in whose document the node resides.
|
||||
# If omitted, the root frame is used.
|
||||
optional Page.FrameId frameId
|
||||
returns
|
||||
array of AXNode nodes
|
||||
|
||||
@@ -7793,8 +7799,11 @@ domain Page
|
||||
CacheControlNoStoreCookieModified
|
||||
CacheControlNoStoreHTTPOnlyCookieModified
|
||||
NoResponseHead
|
||||
Unknown
|
||||
ActivationNavigationsDisallowedForBug1234857
|
||||
#Blocklisted features
|
||||
WebSocket
|
||||
WebTransport
|
||||
WebRTC
|
||||
MainResourceHasCacheControlNoStore
|
||||
MainResourceHasCacheControlNoCache
|
||||
@@ -7837,8 +7846,17 @@ domain Page
|
||||
OutstandingNetworkRequestDirectSocket
|
||||
IsolatedWorldScript
|
||||
InjectedStyleSheet
|
||||
# Disabled for render frame host reasons
|
||||
MediaSessionImplOnServiceCreated
|
||||
Unknown
|
||||
SecurityHandler
|
||||
WebAuthenticationAPI
|
||||
FileChooser
|
||||
Serial
|
||||
FileSystemAccess
|
||||
MediaDevicesDispatcherHost
|
||||
WebBluetooth
|
||||
WebUSB
|
||||
MediaSession
|
||||
|
||||
# Types of not restored reasons for back-forward cache.
|
||||
experimental type BackForwardCacheNotRestoredReasonType extends string
|
||||
@@ -8797,6 +8815,8 @@ domain Target
|
||||
# Controls whether to automatically attach to new targets which are considered to be related to
|
||||
# this one. When turned on, attaches to all existing related targets as well. When turned off,
|
||||
# automatically detaches from all currently attached targets.
|
||||
# This also clears all targets added by `autoAttachRelated` from the list of targets to watch
|
||||
# for creation of related targets.
|
||||
experimental command setAutoAttach
|
||||
parameters
|
||||
# Whether to auto-attach to related targets.
|
||||
@@ -8809,6 +8829,17 @@ domain Target
|
||||
# and eventually retire it. See crbug.com/991325.
|
||||
optional boolean flatten
|
||||
|
||||
# Adds the specified target to the list of targets that will be monitored for any related target
|
||||
# creation (such as child frames, child workers and new versions of service worker) and reported
|
||||
# through `attachedToTarget`. This cancel the effect of any previous `setAutoAttach` and is also
|
||||
# cancelled by subsequent `setAutoAttach`. Only available at the Browser target.
|
||||
experimental command autoAttachRelated
|
||||
parameters
|
||||
TargetID targetId
|
||||
# Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
|
||||
# to run paused targets.
|
||||
boolean waitForDebuggerOnStart
|
||||
|
||||
# Controls whether to discover available targets and notify via
|
||||
# `targetCreated/targetInfoChanged/targetDestroyed` events.
|
||||
command setDiscoverTargets
|
||||
|
||||
Reference in New Issue
Block a user