Skip to content

{wip} Fire error events for invalid speculation rules#53879

Closed
jcscottiii wants to merge 1 commit intomasterfrom
jcs3-chromium-export-a354fb49e4
Closed

{wip} Fire error events for invalid speculation rules#53879
jcscottiii wants to merge 1 commit intomasterfrom
jcs3-chromium-export-a354fb49e4

Conversation

@jcscottiii
Copy link
Contributor

Trying out rebased version of #53821

This CL introduces error handling for <script type=speculationrules>,
mirroring the behavior of <script type=importmap>.

Specifically, it adds error events for two cases:
- Inline speculation rules with unparsable JSON.
- External speculation rules, which are not yet supported.

This is verified by new web platform tests.

This follows the spec change at
whatwg/html#11426.

Change-Id: I9b0776b86059f6c8734d57c17f50ed26e89215da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6758353
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1488632}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments