[wpt-sync] Sync PR 65033 - Fix stale integrity hashes in preload/subresource-integrity-font.html
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65033 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65033
Details from upstream follow.
Helmut Januschka <helmut@januschka.com> wrote:
Fix stale integrity hashes in preload/subresource-integrity-font.html
The test hardcodes sha256/sha384/sha512 digests of
fonts/CanvasTest.ttf. That font changed twice after the test was added in 937311ebf (2022-04-26):
- 857334f0c (2023-08-07) updated the OS/2 table to version 4
- 273606d08 (2023-09-21) added a STAT table
The hashes were never updated, so every "correct hash" subtest asserts against a digest the file has not had since 2023. Any implementation that actually enforces SRI on
<link rel=preload>fails them, while an implementation that ignores integrity entirely passes them, because the subtests only check that the load event fires.Current digests of
fonts/CanvasTest.ttf:sha256-mQ5AW27ghl+2Hz7rOhczvRW4KzWOemFPixxS9/bK7M4= sha384-hjPEdy6wKCVS6OVntMWLSXfRWzgAKFs88zJAwXymT4M8buiBjBp0cmwpa+M3qlLa sha512-lsnIJ00+76UpuKVuXVFKHoABJ5w9eH1yGE1u5i6ixSIuUW6/vp3nt6ny/nNWvTgsjebJFNnPfrWKsTfZpaeIAg==Found while implementing SRI enforcement for
<link rel=preload>in WebKit (https://bugs.webkit.org/show_bug.cgi?id=238206).
| Assignee | ||
Updated•10 days ago
|
| Assignee | ||
Comment 1•10 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123033
| Assignee | ||
Comment 2•10 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 23 subtests
Status Summary
Firefox
OK : 1
PASS: 15
FAIL: 8
Chrome
OK : 1
PASS: 23
Safari
OK : 1
PASS: 12
FAIL: 11
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /preload/subresource-integrity-font.html [wpt.fyi]
- <crossorigin="anonymous"> Same-origin with incorrect hash.:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin="anonymous"> Same-origin with sha256 match, sha512 mismatch.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin, not CORS request, with incorrect sha256 hash.:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin="anonymous"> Cross-origin with incorrect sha256 hash, ACAO: *.:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin="anonymous"> Cross-origin with correct sha256 hash, with CORS-ineligible resource.:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin, not CORS request, with correct sha256.:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin, not CORS request, with incorrect sha256.:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin="use-credentials"> Cross-origin with incorrect sha256 hash, CORS-eligible.:
FAIL(Chrome:PASS, Safari:FAIL)
- <crossorigin="anonymous"> Same-origin with incorrect hash.:
Comment 4•9 days ago
|
||
| bugherder | ||
Description
•