Closed Bug 2080559 Opened 1 month ago Closed 8 days ago

[wpt-sync] Sync PR 63513 - Deflake WPT preload/subresource-integrity.html

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63513 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63513
Details from upstream follow.

Mike Taylor <miketaylr@chromium.org> wrote:

Deflake WPT preload/subresource-integrity.html

SRIPreloadTest in resources/sriharness.js synchronously calls
verifyNumberOfResourceTimingEntries() inside the subresource's
onload/onerror handler. In Blink, PerformanceResourceTiming entries for
memory-cached resources are queued asynchronously on a one-shot timer in
ResourceFetcher::DidLoadResourceFromMemoryCache(), which can fire
slightly after onload/onerror. Wait up to 300ms if the expected number
of ResourceTiming entries has not yet been recorded, matching other
preload WPT tests (e.g. preload-resource-match.https.html).

Also add \<meta name="timeout" content="long"> since the test runs 77
preload+subresource subtests (~97 network requests), and remove the test
from TestExpectations.

Bug: 552768634
Change-Id: Ib7ba8c4981512ec6a046bc7ddfd8e7b5ab9f6d8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8548814
Commit-Queue: Ari Chivukula \<arichiv@chromium.org>
Reviewed-by: Ari Chivukula \<arichiv@chromium.org>
Auto-Submit: Mike Taylor \<miketaylr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1715964}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 60 subtests

Status Summary

Firefox

OK : 2
PASS: 116
FAIL: 21

Chrome

OK : 2
PASS: 131
FAIL: 6

Safari

OK : 2
PASS: 100
FAIL: 37

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /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 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 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)
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.