WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
306605
Speculation Rules JSON with no charset is not processed
https://bugs.webkit.org/show_bug.cgi?id=306605
Summary
Speculation Rules JSON with no charset is not processed
Yoav Weiss
Reported
2026-01-30 00:46:38 PST
Going to
https://theme-horizon-demo.myshopify.com/
, its speculation rules JSON doesn't explicitly state its charset in its Content-Type header. As a result, the speculation rules are not processed, and an "[Error] Invalid speculation rules encoding
https://theme-horizon-demo.myshopify.com/cdn/shopifycloud/storefront/assets/storefront/horizon.immediate.specrules-17895942.json
" console error is emitted. This is contrary to the spec that indicates that such resources should be parsed as UTF-8.
Attachments
Add attachment
proposed patch, testcase, etc.
Yoav Weiss
Comment 1
2026-01-30 00:54:14 PST
Pull request:
https://github.com/WebKit/WebKit/pull/57541
EWS
Comment 2
2026-01-30 12:13:32 PST
Committed
306513@main
(9b44ce96b044): <
https://commits.webkit.org/306513@main
> Reviewed commits have been landed. Closing PR #57541 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2026-01-30 12:14:13 PST
<
rdar://problem/169297139
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug