Closed Bug 1774540 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 34462 - Fix up wpt/preload

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
104 Branch
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: 1275564

Reviewed-on: https://chromium-review.googlesource.com/3708287
WPT-Export-Revision: f5be2eeca32b45bc924c6613aa7a9a1d08f1ccf2

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

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)
  • /preload/dynamic-adding-preload-nonce.html [wpt.fyi]
    • link preload with nonce attribute: FAIL (Chrome: PASS, Safari: PASS)
  • /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)
  • /preload/link-header-on-subresource.html [wpt.fyi]
    • Makes sure that Link headers on subresources preload resources: FAIL (Chrome: PASS, Safari: PASS)
  • /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)
  • /preload/link-header-preload-nonce.html [wpt.fyi]
    • with nonce: FAIL (Chrome: PASS, Safari: PASS)
  • /preload/onload-event.html [wpt.fyi]
    • Makes sure that preloaded resources trigger the onload event: FAIL (Chrome: FAIL, Safari: FAIL)
  • /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)
  • /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)
  • /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)
  • /preload/preload-strict-dynamic.sub.html [wpt.fyi]
    • static-no-nonce: FAIL (Chrome: PASS, Safari: FAIL)
  • /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)
  • /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/preload-with-type.html [wpt.fyi]
    • Makes sure that preloaded resources with a type attribute trigger the onload event: FAIL (Chrome: FAIL, Safari: FAIL)
  • /preload/single-download-preload.html [wpt.fyi]
    • Makes sure that preloaded resources are not downloaded again when used: FAIL (Chrome: PASS, Safari: 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)
  • /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)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec1e219f8c28 [wpt PR 34462] - Fix up wpt/preload, a=testonly https://hg.mozilla.org/integration/autoland/rev/931f354e2f84 [wpt PR 34462] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.