Bug 306605

Summary: Speculation Rules JSON with no charset is not processed
Product: WebKit Reporter: Yoav Weiss <yoav>
Component: New BugsAssignee: Yoav Weiss <yoav>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
Yoav Weiss
Comment 1 2026-01-30 00:54:14 PST
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
Note You need to log in before you can comment on or make changes to this bug.