mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
Update protocol
Bug: chromium:1224881 Change-Id: I9ecb00ea89151ce73fbd7f421dfb6aaf3ae76bbe Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3003259 Reviewed-by: Wolfgang Beyer <wolfi@chromium.org> Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
This commit is contained in:
committed by
Devtools-frontend LUCI CQ
parent
073af393e2
commit
ef1ed2d54a
@@ -273,7 +273,8 @@ export function registerCommands(inspectorBackend) {
|
||||
CorsIssue: 'CorsIssue',
|
||||
AttributionReportingIssue: 'AttributionReportingIssue',
|
||||
QuirksModeIssue: 'QuirksModeIssue',
|
||||
NavigatorUserAgentIssue: 'NavigatorUserAgentIssue'
|
||||
NavigatorUserAgentIssue: 'NavigatorUserAgentIssue',
|
||||
WasmCrossOriginModuleSharingIssue: 'WasmCrossOriginModuleSharingIssue'
|
||||
});
|
||||
inspectorBackend.registerEvent('Audits.issueAdded', ['issue']);
|
||||
inspectorBackend.registerEnum('Audits.GetEncodedResponseRequestEncoding', {Webp: 'webp', Jpeg: 'jpeg', Png: 'png'});
|
||||
@@ -591,6 +592,7 @@ export function registerCommands(inspectorBackend) {
|
||||
TargetText: 'target-text',
|
||||
SpellingError: 'spelling-error',
|
||||
GrammarError: 'grammar-error',
|
||||
Highlight: 'highlight',
|
||||
FirstLineInherited: 'first-line-inherited',
|
||||
Scrollbar: 'scrollbar',
|
||||
ScrollbarThumb: 'scrollbar-thumb',
|
||||
|
||||
Vendored
+15
@@ -1041,6 +1041,13 @@ declare namespace Protocol {
|
||||
location?: SourceCodeLocation;
|
||||
}
|
||||
|
||||
export interface WasmCrossOriginModuleSharingIssueDetails {
|
||||
wasmModuleUrl: string;
|
||||
sourceOrigin: string;
|
||||
targetOrigin: string;
|
||||
isWarning: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* A unique identifier for the type of issue. Each type may use one of the
|
||||
* optional fields in InspectorIssueDetails to convey more specific
|
||||
@@ -1059,6 +1066,7 @@ declare namespace Protocol {
|
||||
AttributionReportingIssue = 'AttributionReportingIssue',
|
||||
QuirksModeIssue = 'QuirksModeIssue',
|
||||
NavigatorUserAgentIssue = 'NavigatorUserAgentIssue',
|
||||
WasmCrossOriginModuleSharingIssue = 'WasmCrossOriginModuleSharingIssue',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1079,6 +1087,7 @@ declare namespace Protocol {
|
||||
attributionReportingIssueDetails?: AttributionReportingIssueDetails;
|
||||
quirksModeIssueDetails?: QuirksModeIssueDetails;
|
||||
navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;
|
||||
wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2840,6 +2849,7 @@ declare namespace Protocol {
|
||||
TargetText = 'target-text',
|
||||
SpellingError = 'spelling-error',
|
||||
GrammarError = 'grammar-error',
|
||||
Highlight = 'highlight',
|
||||
FirstLineInherited = 'first-line-inherited',
|
||||
Scrollbar = 'scrollbar',
|
||||
ScrollbarThumb = 'scrollbar-thumb',
|
||||
@@ -6928,6 +6938,11 @@ declare namespace Protocol {
|
||||
* passed by the developer (e.g. via "fetch") as understood by the backend.
|
||||
*/
|
||||
trustTokenParams?: TrustTokenParams;
|
||||
/**
|
||||
* True if this resource request is considered to be the 'same site' as the
|
||||
* request correspondinfg to the main frame.
|
||||
*/
|
||||
isSameSite?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1580,6 +1580,28 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "WasmCrossOriginModuleSharingIssueDetails",
|
||||
"type": "object",
|
||||
"properties": [
|
||||
{
|
||||
"name": "wasmModuleUrl",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "sourceOrigin",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "targetOrigin",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "isWarning",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "InspectorIssueCode",
|
||||
"description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
|
||||
@@ -1596,7 +1618,8 @@
|
||||
"CorsIssue",
|
||||
"AttributionReportingIssue",
|
||||
"QuirksModeIssue",
|
||||
"NavigatorUserAgentIssue"
|
||||
"NavigatorUserAgentIssue",
|
||||
"WasmCrossOriginModuleSharingIssue"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1663,6 +1686,11 @@
|
||||
"name": "navigatorUserAgentIssueDetails",
|
||||
"optional": true,
|
||||
"$ref": "NavigatorUserAgentIssueDetails"
|
||||
},
|
||||
{
|
||||
"name": "wasmCrossOriginModuleSharingIssue",
|
||||
"optional": true,
|
||||
"$ref": "WasmCrossOriginModuleSharingIssueDetails"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -4268,6 +4296,7 @@
|
||||
"target-text",
|
||||
"spelling-error",
|
||||
"grammar-error",
|
||||
"highlight",
|
||||
"first-line-inherited",
|
||||
"scrollbar",
|
||||
"scrollbar-thumb",
|
||||
@@ -10384,6 +10413,13 @@
|
||||
"experimental": true,
|
||||
"optional": true,
|
||||
"$ref": "TrustTokenParams"
|
||||
},
|
||||
{
|
||||
"name": "isSameSite",
|
||||
"description": "True if this resource request is considered to be the 'same site' as the\nrequest correspondinfg to the main frame.",
|
||||
"experimental": true,
|
||||
"optional": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -757,6 +757,13 @@ experimental domain Audits
|
||||
string url
|
||||
optional SourceCodeLocation location
|
||||
|
||||
type WasmCrossOriginModuleSharingIssueDetails extends object
|
||||
properties
|
||||
string wasmModuleUrl
|
||||
string sourceOrigin
|
||||
string targetOrigin
|
||||
boolean isWarning
|
||||
|
||||
# A unique identifier for the type of issue. Each type may use one of the
|
||||
# optional fields in InspectorIssueDetails to convey more specific
|
||||
# information about the kind of issue.
|
||||
@@ -774,6 +781,7 @@ experimental domain Audits
|
||||
AttributionReportingIssue
|
||||
QuirksModeIssue
|
||||
NavigatorUserAgentIssue
|
||||
WasmCrossOriginModuleSharingIssue
|
||||
|
||||
# This struct holds a list of optional fields with additional information
|
||||
# specific to the kind of issue. When adding a new issue code, please also
|
||||
@@ -792,6 +800,7 @@ experimental domain Audits
|
||||
optional AttributionReportingIssueDetails attributionReportingIssueDetails
|
||||
optional QuirksModeIssueDetails quirksModeIssueDetails
|
||||
optional NavigatorUserAgentIssueDetails navigatorUserAgentIssueDetails
|
||||
optional WasmCrossOriginModuleSharingIssueDetails wasmCrossOriginModuleSharingIssue
|
||||
|
||||
# A unique id for a DevTools inspector issue. Allows other entities (e.g.
|
||||
# exceptions, CDP message, console messages, etc.) to reference an issue.
|
||||
@@ -1997,6 +2006,7 @@ domain DOM
|
||||
target-text
|
||||
spelling-error
|
||||
grammar-error
|
||||
highlight
|
||||
first-line-inherited
|
||||
scrollbar
|
||||
scrollbar-thumb
|
||||
@@ -4738,6 +4748,9 @@ domain Network
|
||||
# Set for requests when the TrustToken API is used. Contains the parameters
|
||||
# passed by the developer (e.g. via "fetch") as understood by the backend.
|
||||
experimental optional TrustTokenParams trustTokenParams
|
||||
# True if this resource request is considered to be the 'same site' as the
|
||||
# request correspondinfg to the main frame.
|
||||
experimental optional boolean isSameSite
|
||||
|
||||
# Details of a signed certificate timestamp (SCT).
|
||||
type SignedCertificateTimestamp extends object
|
||||
|
||||
Reference in New Issue
Block a user