Roll protocol
DISABLE_THIRD_PARTY_CHECK=Need to update code depending on generated types
Bug: 1384419
Change-Id: I6f74e17999d51d300ab5da81fc5e568231f54b13
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4452427
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Ken Okada <kenoss@chromium.org>
diff --git a/front_end/generated/protocol.ts b/front_end/generated/protocol.ts
index a3fe3f3..b0c3d0e 100644
--- a/front_end/generated/protocol.ts
+++ b/front_end/generated/protocol.ts
@@ -15389,6 +15389,21 @@
*/
sourceText: string;
/**
+ * A speculation rule set is either added through an inline
+ * <script> tag or through an external resource via the
+ * 'Speculation-Rules' HTTP header. For the first case, we include
+ * the BackendNodeId of the relevant <script> tag. For the second
+ * case, we include the external URL where the rule set was loaded
+ * from, and also RequestId if Network domain is enabled.
+ *
+ * See also:
+ * - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script
+ * - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header
+ */
+ backendNodeId?: DOM.BackendNodeId;
+ url?: string;
+ requestId?: Network.RequestId;
+ /**
* Error information
* `errorMessage` is null iff `errorType` is null.
*/
diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.json b/third_party/blink/public/devtools_protocol/browser_protocol.json
index 8c43154..d76bec0 100644
--- a/third_party/blink/public/devtools_protocol/browser_protocol.json
+++ b/third_party/blink/public/devtools_protocol/browser_protocol.json
@@ -23002,6 +23002,22 @@
"type": "string"
},
{
+ "name": "backendNodeId",
+ "description": "A speculation rule set is either added through an inline\n<script> tag or through an external resource via the\n'Speculation-Rules' HTTP header. For the first case, we include\nthe BackendNodeId of the relevant <script> tag. For the second\ncase, we include the external URL where the rule set was loaded\nfrom, and also RequestId if Network domain is enabled.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script\n- https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header",
+ "optional": true,
+ "$ref": "DOM.BackendNodeId"
+ },
+ {
+ "name": "url",
+ "optional": true,
+ "type": "string"
+ },
+ {
+ "name": "requestId",
+ "optional": true,
+ "$ref": "Network.RequestId"
+ },
+ {
"name": "errorType",
"description": "Error information\n`errorMessage` is null iff `errorType` is null.",
"optional": true,
diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.pdl b/third_party/blink/public/devtools_protocol/browser_protocol.pdl
index 87d66e5..94753ad 100644
--- a/third_party/blink/public/devtools_protocol/browser_protocol.pdl
+++ b/third_party/blink/public/devtools_protocol/browser_protocol.pdl
@@ -707,6 +707,7 @@
# TODO(apaseltiner): Rename this to InvalidRegisterSourceHeader
InvalidHeader
InvalidRegisterTriggerHeader
+ # TODO(apaseltiner): Remove this issue once DevTools stops referencing it.
InvalidEligibleHeader
SourceAndTriggerHeaders
SourceIgnored
@@ -10831,6 +10832,19 @@
# - https://wicg.github.io/nav-speculation/speculation-rules.html
# - https://github.com/WICG/nav-speculation/blob/main/triggers.md
string sourceText
+ # A speculation rule set is either added through an inline
+ # <script> tag or through an external resource via the
+ # 'Speculation-Rules' HTTP header. For the first case, we include
+ # the BackendNodeId of the relevant <script> tag. For the second
+ # case, we include the external URL where the rule set was loaded
+ # from, and also RequestId if Network domain is enabled.
+ #
+ # See also:
+ # - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script
+ # - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header
+ optional DOM.BackendNodeId backendNodeId
+ optional string url
+ optional Network.RequestId requestId
# Error information
# `errorMessage` is null iff `errorType` is null.
optional RuleSetErrorType errorType