Bug 306605
| Summary: | Speculation Rules JSON with no charset is not processed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yoav Weiss <yoav> |
| Component: | New Bugs | Assignee: | 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
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
Pull request: https://github.com/WebKit/WebKit/pull/57541
EWS
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
<rdar://problem/169297139>