Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9b44ce96b044b2cc5ac189b470b8cdcd46a3f1fb
https://github.com/WebKit/WebKit/commit/9b44ce96b044b2cc5ac189b470b8cdcd46a3f1fb
Author: Yoav Weiss <[email protected]>
Date: 2026-01-30 (Fri, 30 Jan 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/out-of-document-rule-set.https.html
A
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/out-of-document-rule-set.https_include=OmitCharsetFromSpeculationRulesSet-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/resources/ruleset.py
M Source/WebCore/dom/LoadableSpeculationRules.cpp
Log Message:
-----------
SpeculationRules - JSON rules with no charset interpreted as UTF-8
https://bugs.webkit.org/show_bug.cgi?id=306605
Reviewed by Alex Christensen.
This PR aligns the implementation with the spec and enforces UTF-8 encoding on
external JSON rules.
This resolves the issue, as resources without explicit encoding will now be
properly processed.
No new test files, but added new test cases.
*
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/out-of-document-rule-set.https.html:
Add a new test case.
*
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/out-of-document-rule-set.https_include=OmitCharsetFromSpeculationRulesSet-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/resources/ruleset.py:
Add a new test case.
(main):
* Source/WebCore/dom/LoadableSpeculationRules.cpp:
(WebCore::LoadableSpeculationRules::notifyFinished): Enforce UTF-8 encoding
instead of bailing.
Canonical link: https://commits.webkit.org/306513@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications