Skip to content

Reland "Fire error events for invalid speculation rules tags" - #53905

Merged
chromium-wpt-export-bot merged 1 commit into
web-platform-tests:masterfrom
jonathan-j-lee:reland-chromium-export-8a2757c24d
Jul 22, 2025
Merged

chromium-wpt-export-bot merged 1 commit into
web-platform-tests:masterfrom
jonathan-j-lee:reland-chromium-export-8a2757c24d

Conversation

@jonathan-j-lee

@jonathan-j-lee jonathan-j-lee commented Jul 22, 2025 •

Copy link
Copy Markdown
Contributor

This PR relands #53822, with the description edited to
fix a wpt-decision-task failure in CI.

This matches the spec update at
whatwg/html#11426.

Bug: None
Change-Id: I5d2211510bd4e3a3ecce15010325b411f18fde3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6746174
Commit-Queue: Domenic Denicola domenic@chromium.org
Reviewed-by: Danil Somsikov dsv@chromium.org
Reviewed-by: Hiroki Nakagawa nhiroki@chromium.org
Cr-Commit-Position: refs/heads/main@{#1488633}

…sts#53822)

This CL introduces error handling for <script type=speculationrules>
with invalid ruleset-level tags. This changes the behavior: previously
we would ignore such tags and preload with the null tag. But now, we
error the entire <script type=speculationrules>, since it is better to
avoid preloading if the web developer is expecting it to get a certain
tag and we cannot fulfill that request.

This matches the spec update at
whatwg/html#11426.

Bug: None
Change-Id: I5d2211510bd4e3a3ecce15010325b411f18fde3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6746174
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1488633}
@jonathan-j-lee jonathan-j-lee changed the title Fire error events for invalid speculation rules tags (#53822) Fire error events for invalid speculation rules tags Jul 22, 2025
@jonathan-j-lee
jonathan-j-lee marked this pull request as ready for review July 22, 2025 20:00
@wpt-pr-bot

Copy link
Copy Markdown
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

@jonathan-j-lee jonathan-j-lee changed the title Fire error events for invalid speculation rules tags Reland "Fire error events for invalid speculation rules tags" Jul 22, 2025
@chromium-wpt-export-bot
chromium-wpt-export-bot merged commit 978340f into web-platform-tests:master Jul 22, 2025
@jonathan-j-lee
jonathan-j-lee deleted the reland-chromium-export-8a2757c24d branch July 22, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants