[wpt-sync] Sync PR 34462 - Fix up wpt/preload
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox104 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34462 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34462
Details from upstream follow.
Yutaka Hirano <yhirano@chromium.org> wrote:
Fix up wpt/preload
- Some tests in wpt/preload use Resource Timing entries to make sure
that no requests are made. We're changing that (Resource Timing
entries should be created even when blocked by CSP - see
https://github.com/whatwg/fetch/issues/1215). Stop using
Resource Timing entries and check that with server side scripts.- http/tests/preload/preload-csp.html is covered by some WPTs. Let's
remove it.Change-Id: I3c2cdfa2459d212657be7569c5290c48b39d6f05
Bug: 1275564Reviewed-on: https://chromium-review.googlesource.com/3708287
WPT-Export-Revision: f5be2eeca32b45bc924c6613aa7a9a1d08f1ccf2
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 38 tests and 77 subtests
Status Summary
Firefox
OK : 35
PASS : 453
FAIL : 59
TIMEOUT: 2
ERROR : 2
Chrome
OK : 38
PASS : 490
FAIL : 25
Safari
OK : 33
PASS : 329
FAIL : 156
TIMEOUT: 6
ERROR : 2
NOTRUN : 25
Links
Details
Firefox-only Failures
- /preload/dynamic-adding-preload-nonce.html [wpt.fyi]
- link preload with nonce attribute:
FAIL
- link preload with nonce attribute:
- /preload/link-header-on-subresource.html [wpt.fyi]
- Makes sure that Link headers on subresources preload resources:
FAIL
- Makes sure that Link headers on subresources preload resources:
- /preload/link-header-preload-non-html.html [wpt.fyi]
- image documents should respect preload Link headers:
FAILlinked bug:Bug 1760779 - invalid image documents should respect preload Link headers:
FAILlinked bug:Bug 1760779
- image documents should respect preload Link headers:
- /preload/link-header-preload-nonce.html [wpt.fyi]
- with nonce:
FAIL
- with nonce:
- /preload/preload-dynamic-csp.html [wpt.fyi]
- Makes sure that preload requests respect CSP directives that are added after the preload:
FAILlinked bug:Bug 1761021
- Makes sure that preload requests respect CSP directives that are added after the preload:
- /preload/preload-error.sub.html [wpt.fyi]
- CORS-error (image): preload events:
FAILlinked bug:Bug 1766689 - CORS-error (style): preload events:
FAILlinked bug:Bug 1766689 - CORS-error (script): preload events:
FAILlinked bug:Bug 1766689 - 404 (xhr): preload events:
FAILlinked bug:Bug 1766689 - CORS-error (xhr): preload events:
FAILlinked bug:Bug 1766689 - 404 (fetch): preload events:
FAILlinked bug:Bug 1766689 - CORS-error (fetch): preload events:
FAILlinked bug:Bug 1766689 - MIME-error (style): preload events:
FAILlinked bug:Bug 1766689
- CORS-error (image): preload events:
- /preload/preload-resource-match.https.html [wpt.fyi]
- Loading font (same-origin) with link (same-origin) should reuse the preloaded response:
FAILlinked bug:Bug 1765128
- Loading font (same-origin) with link (same-origin) should reuse the preloaded response:
- /preload/preload-type-match.html [wpt.fyi]
- Preload with {as=track; type=text/vtt} should load when retrieved resource is a track:
FAILlinked bug:Bug 1766213
- Preload with {as=track; type=text/vtt} should load when retrieved resource is a track:
- /preload/single-download-preload.html [wpt.fyi]
- Makes sure that preloaded resources are not downloaded again when used:
FAIL
- Makes sure that preloaded resources are not downloaded again when used:
New Tests That Don't Pass
- /preload/avoid-delaying-onload-link-modulepreload-exec.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR) - /preload/avoid-delaying-onload-link-modulepreload.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR) - /preload/download-resources.html [wpt.fyi]
- Makes sure that preloaded resources are downloaded:
FAIL(Chrome:FAIL, Safari:FAIL)
- Makes sure that preloaded resources are downloaded:
- /preload/dynamic-adding-preload-nonce.html [wpt.fyi]
- link preload with nonce attribute:
FAIL(Chrome:PASS, Safari:PASS)
- link preload with nonce attribute:
- /preload/link-header-modulepreload.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:TIMEOUT)- test that a header-preloaded module is loaded and consumed:
TIMEOUT(Chrome:PASS, Safari:TIMEOUT)
- test that a header-preloaded module is loaded and consumed:
- /preload/link-header-on-subresource.html [wpt.fyi]
- Makes sure that Link headers on subresources preload resources:
FAIL(Chrome:PASS, Safari:PASS)
- Makes sure that Link headers on subresources preload resources:
- /preload/link-header-preload-non-html.html [wpt.fyi]
- image documents should respect preload Link headers:
FAIL(Chrome:PASS, Safari:PASS) - media documents should respect preload Link headers:
FAIL(Chrome:FAIL, Safari:PASS) - invalid image documents should respect preload Link headers:
FAIL(Chrome:PASS, Safari:PASS)
- image documents should respect preload Link headers:
- /preload/link-header-preload-nonce.html [wpt.fyi]
- with nonce:
FAIL(Chrome:PASS, Safari:PASS)
- with nonce:
- /preload/onload-event.html [wpt.fyi]
- Makes sure that preloaded resources trigger the onload event:
FAIL(Chrome:FAIL, Safari:FAIL)
- Makes sure that preloaded resources trigger the onload event:
- /preload/preload-dynamic-csp.html [wpt.fyi]
- Makes sure that preload requests respect CSP directives that are added after the preload:
FAIL(Chrome:PASS, Safari:PASS)
- Makes sure that preload requests respect CSP directives that are added after the preload:
- /preload/preload-error.sub.html [wpt.fyi]
- CORS-error (image): preload events:
FAIL(Chrome:PASS, Safari:PASS) - 404 (style): preload events:
FAIL(Chrome:FAIL, Safari:FAIL) - CORS-error (style): preload events:
FAIL(Chrome:PASS, Safari:PASS) - 404 (script): preload events:
FAIL(Chrome:FAIL, Safari:FAIL) - CORS-error (script): preload events:
FAIL(Chrome:PASS, Safari:PASS) - 404 (xhr): preload events:
FAIL(Chrome:PASS, Safari:PASS) - CORS-error (xhr): preload events:
FAIL(Chrome:PASS, Safari:PASS) - 404 (fetch): preload events:
FAIL(Chrome:PASS, Safari:PASS) - CORS-error (fetch): preload events:
FAIL(Chrome:PASS, Safari:PASS) - Decode-error (image): preload events:
FAIL(Chrome:FAIL, Safari:FAIL) - MIME-error (style): preload events:
FAIL(Chrome:PASS, Safari:PASS)
- CORS-error (image): preload events:
- /preload/preload-resource-match.https.html [wpt.fyi]
- Loading font (same-origin) with link (same-origin) should reuse the preloaded response:
FAIL(Chrome:PASS, Safari:PASS)
- Loading font (same-origin) with link (same-origin) should reuse the preloaded response:
- /preload/preload-strict-dynamic.sub.html [wpt.fyi]
- static-no-nonce:
FAIL(Chrome:PASS, Safari:FAIL)
- static-no-nonce:
- /preload/preload-time-to-fetch.https.html [wpt.fyi]
- Changing a preload "as" from a previously non-matching destination should trigger a fetch:
FAIL(Chrome:PASS, Safari:FAIL)
- Changing a preload "as" from a previously non-matching destination should trigger a fetch:
- /preload/preload-type-match.html [wpt.fyi]
- Preload with {as=track; type=text/vtt} should load when retrieved resource is a track:
FAIL(Chrome:PASS, Safari:PASS)
- Preload with {as=track; type=text/vtt} should load when retrieved resource is a track:
- /preload/preload-with-type.html [wpt.fyi]
- Makes sure that preloaded resources with a type attribute trigger the onload event:
FAIL(Chrome:FAIL, Safari:FAIL)
- Makes sure that preloaded resources with a type attribute trigger the onload event:
- /preload/single-download-preload.html [wpt.fyi]
- Makes sure that preloaded resources are not downloaded again when used:
FAIL(Chrome:PASS, Safari:PASS)
- Makes sure that preloaded resources are not downloaded again when used:
- /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.:
- /preload/subresource-integrity.html [wpt.fyi]
- Same-origin script with incorrect hash.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin script with sha256 match, sha512 mismatch:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin='anonymous'> script with incorrect hash, ACAO: *:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin='use-credentials'> script with incorrect hash CORS-eligible:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin='anonymous'> script with CORS-ineligible resource:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin script, not CORS request, with correct hash:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin script, not CORS request, with hash mismatch:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin script with matching digest does not reuse preload with matching but stronger digest.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin script with wrong digest does not reuse preload with correct and stronger digest.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin style with incorrect hash.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin style with sha256 match, sha512 mismatch:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin='anonymous'> style with incorrect hash, ACAO: *:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin='use-credentials'> style with incorrect hash CORS-eligible:
FAIL(Chrome:PASS, Safari:FAIL) - <crossorigin='anonymous'> style with CORS-ineligible resource:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin style, not CORS request, with correct hash:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin style, not CORS request, with hash mismatch:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin style with matching digest does not reuse preload with matching but stronger digest.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin style with wrong digest does not reuse preload with correct and stronger digest.:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin image with incorrect hash.:
FAIL(Chrome:FAIL, Safari:FAIL) - Same-origin image with sha256 match, sha512 mismatch:
FAIL(Chrome:FAIL, Safari:FAIL) - <crossorigin='anonymous'> image with incorrect hash, ACAO: *:
FAIL(Chrome:FAIL, Safari:FAIL) - <crossorigin='use-credentials'> image with incorrect hash CORS-eligible:
FAIL(Chrome:FAIL, Safari:FAIL) - <crossorigin='anonymous'> image with CORS-ineligible resource:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin image, not CORS request, with correct hash:
FAIL(Chrome:FAIL, Safari:FAIL) - Cross-origin image, not CORS request, with hash mismatch:
FAIL(Chrome:FAIL, Safari:FAIL)
- Same-origin script with incorrect hash.:
Comment 4•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ec1e219f8c28
https://hg.mozilla.org/mozilla-central/rev/931f354e2f84
Description
•