mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
Update protocol
DISABLE_THIRD_PARTY_CHECK=protocol update Bug: chromium:1051466 Change-Id: I2222517db877e10681511a9d967e41ba12244bad Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2362572 Reviewed-by: Wolfgang Beyer <wolfi@chromium.org> Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
1e2c6947a2
commit
141bdf7164
@@ -1421,6 +1421,13 @@ export function registerCommands(inspectorBackend) {
|
||||
SignatureValidityUrl: 'signatureValidityUrl',
|
||||
SignatureTimestamps: 'signatureTimestamps'
|
||||
});
|
||||
inspectorBackend.registerEnum('Network.CrossOriginOpenerPolicyValue', {
|
||||
SameOrigin: 'SameOrigin',
|
||||
SameOriginAllowPopups: 'SameOriginAllowPopups',
|
||||
UnsafeNone: 'UnsafeNone',
|
||||
SameOriginPlusCoep: 'SameOriginPlusCoep'
|
||||
});
|
||||
inspectorBackend.registerEnum('Network.CrossOriginEmbedderPolicyValue', {None: 'None', RequireCorp: 'RequireCorp'});
|
||||
inspectorBackend.registerEvent('Network.dataReceived', ['requestId', 'timestamp', 'dataLength', 'encodedDataLength']);
|
||||
inspectorBackend.registerEvent(
|
||||
'Network.eventSourceMessageReceived', ['requestId', 'timestamp', 'eventName', 'eventId', 'data']);
|
||||
@@ -1562,6 +1569,8 @@ export function registerCommands(inspectorBackend) {
|
||||
{'name': 'userAgentMetadata', 'type': 'object', 'optional': true}
|
||||
],
|
||||
[]);
|
||||
inspectorBackend.registerCommand(
|
||||
'Network.getSecurityIsolationStatus', [{'name': 'frameId', 'type': 'string', 'optional': true}], ['status']);
|
||||
|
||||
// Overlay.
|
||||
inspectorBackend.registerEnum('Overlay.ColorFormat', {Rgb: 'rgb', Hsl: 'hsl', Hex: 'hex'});
|
||||
|
||||
+7
@@ -1804,6 +1804,13 @@ export namespace ProtocolMapping {
|
||||
* Allows overriding user agent with the given string.
|
||||
*/
|
||||
'Network.setUserAgentOverride': {paramsType: [Protocol.Network.SetUserAgentOverrideRequest]; returnType: void;};
|
||||
/**
|
||||
* Returns information about the COEP/COOP isolation status.
|
||||
*/
|
||||
'Network.getSecurityIsolationStatus': {
|
||||
paramsType: [Protocol.Network.GetSecurityIsolationStatusRequest?];
|
||||
returnType: Protocol.Network.GetSecurityIsolationStatusResponse;
|
||||
};
|
||||
/**
|
||||
* Disables domain notifications.
|
||||
*/
|
||||
|
||||
+6
@@ -1781,6 +1781,12 @@ declare namespace ProtocolProxyApi {
|
||||
*/
|
||||
invoke_setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest):
|
||||
Promise<Protocol.ProtocolResponseWithError>;
|
||||
|
||||
/**
|
||||
* Returns information about the COEP/COOP isolation status.
|
||||
*/
|
||||
invoke_getSecurityIsolationStatus(params: Protocol.Network.GetSecurityIsolationStatusRequest):
|
||||
Promise<Protocol.Network.GetSecurityIsolationStatusResponse>;
|
||||
}
|
||||
export interface NetworkDispatcher extends Protocol.Dispatcher {
|
||||
/**
|
||||
|
||||
Vendored
+36
@@ -7125,6 +7125,31 @@ declare namespace Protocol {
|
||||
errors?: SignedExchangeError[];
|
||||
}
|
||||
|
||||
export enum CrossOriginOpenerPolicyValue {
|
||||
SameOrigin = 'SameOrigin',
|
||||
SameOriginAllowPopups = 'SameOriginAllowPopups',
|
||||
UnsafeNone = 'UnsafeNone',
|
||||
SameOriginPlusCoep = 'SameOriginPlusCoep',
|
||||
}
|
||||
|
||||
export interface CrossOriginOpenerPolicyStatus {
|
||||
value: CrossOriginOpenerPolicyValue;
|
||||
}
|
||||
|
||||
export enum CrossOriginEmbedderPolicyValue {
|
||||
None = 'None',
|
||||
RequireCorp = 'RequireCorp',
|
||||
}
|
||||
|
||||
export interface CrossOriginEmbedderPolicyStatus {
|
||||
value: CrossOriginEmbedderPolicyValue;
|
||||
}
|
||||
|
||||
export interface SecurityIsolationStatus {
|
||||
coop: CrossOriginOpenerPolicyStatus;
|
||||
coep: CrossOriginEmbedderPolicyStatus;
|
||||
}
|
||||
|
||||
export interface CanClearBrowserCacheResponse extends ProtocolResponseWithError {
|
||||
/**
|
||||
* True if browser cache can be cleared.
|
||||
@@ -7491,6 +7516,17 @@ declare namespace Protocol {
|
||||
userAgentMetadata?: Emulation.UserAgentMetadata;
|
||||
}
|
||||
|
||||
export interface GetSecurityIsolationStatusRequest {
|
||||
/**
|
||||
* If no frameId is provided, the status of the target is provided.
|
||||
*/
|
||||
frameId?: Page.FrameId;
|
||||
}
|
||||
|
||||
export interface GetSecurityIsolationStatusResponse extends ProtocolResponseWithError {
|
||||
status: SecurityIsolationStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired when data chunk was received over the network.
|
||||
*/
|
||||
|
||||
@@ -10426,6 +10426,63 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "CrossOriginOpenerPolicyValue",
|
||||
"experimental": true,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"SameOrigin",
|
||||
"SameOriginAllowPopups",
|
||||
"UnsafeNone",
|
||||
"SameOriginPlusCoep"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "CrossOriginOpenerPolicyStatus",
|
||||
"experimental": true,
|
||||
"type": "object",
|
||||
"properties": [
|
||||
{
|
||||
"name": "value",
|
||||
"$ref": "CrossOriginOpenerPolicyValue"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "CrossOriginEmbedderPolicyValue",
|
||||
"experimental": true,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"None",
|
||||
"RequireCorp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "CrossOriginEmbedderPolicyStatus",
|
||||
"experimental": true,
|
||||
"type": "object",
|
||||
"properties": [
|
||||
{
|
||||
"name": "value",
|
||||
"$ref": "CrossOriginEmbedderPolicyValue"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "SecurityIsolationStatus",
|
||||
"experimental": true,
|
||||
"type": "object",
|
||||
"properties": [
|
||||
{
|
||||
"name": "coop",
|
||||
"$ref": "CrossOriginOpenerPolicyStatus"
|
||||
},
|
||||
{
|
||||
"name": "coep",
|
||||
"$ref": "CrossOriginEmbedderPolicyStatus"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
@@ -11009,6 +11066,25 @@
|
||||
"$ref": "Emulation.UserAgentMetadata"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "getSecurityIsolationStatus",
|
||||
"description": "Returns information about the COEP/COOP isolation status.",
|
||||
"experimental": true,
|
||||
"parameters": [
|
||||
{
|
||||
"name": "frameId",
|
||||
"description": "If no frameId is provided, the status of the target is provided.",
|
||||
"optional": true,
|
||||
"$ref": "Page.FrameId"
|
||||
}
|
||||
],
|
||||
"returns": [
|
||||
{
|
||||
"name": "status",
|
||||
"$ref": "SecurityIsolationStatus"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
|
||||
@@ -5333,6 +5333,39 @@ domain Network
|
||||
# available, such as in the case of HTTP/2 or QUIC.
|
||||
optional string headersText
|
||||
|
||||
experimental type CrossOriginOpenerPolicyValue extends string
|
||||
enum
|
||||
SameOrigin
|
||||
SameOriginAllowPopups
|
||||
UnsafeNone
|
||||
SameOriginPlusCoep
|
||||
|
||||
experimental type CrossOriginOpenerPolicyStatus extends object
|
||||
properties
|
||||
CrossOriginOpenerPolicyValue value
|
||||
|
||||
experimental type CrossOriginEmbedderPolicyValue extends string
|
||||
enum
|
||||
None
|
||||
RequireCorp
|
||||
|
||||
experimental type CrossOriginEmbedderPolicyStatus extends object
|
||||
properties
|
||||
CrossOriginEmbedderPolicyValue value
|
||||
|
||||
experimental type SecurityIsolationStatus extends object
|
||||
properties
|
||||
CrossOriginOpenerPolicyStatus coop
|
||||
CrossOriginEmbedderPolicyStatus coep
|
||||
|
||||
# Returns information about the COEP/COOP isolation status.
|
||||
experimental command getSecurityIsolationStatus
|
||||
parameters
|
||||
# If no frameId is provided, the status of the target is provided.
|
||||
optional Page.FrameId frameId
|
||||
returns
|
||||
SecurityIsolationStatus status
|
||||
|
||||
# This domain provides various functionality related to drawing atop the inspected page.
|
||||
experimental domain Overlay
|
||||
depends on DOM
|
||||
|
||||
Reference in New Issue
Block a user