Closed Bug 2081671 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63622 - Deflake three CSP WPTs and remove their expectations

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mike Taylor <miketaylr@chromium.org> wrote:

Deflake three CSP WPTs and remove their expectations

stylehash-basic-blocked.sub.html: The page has three blocked \<style>
elements, so three securitypolicyviolation events fire, but
expected_alerts only listed one. Violation events are posted as tasks;
if the parser yielded before the \<body> script, the second violation
hit assert_unreached. List all three violations (matching
scriptnonce-basic-blocked.sub.html) and fix a t_log/t_alert typo.

parsing/invalid-bytes.html: support/csp.py emitted the \<img> before the
script attaching onload/onerror, so a cached (or quickly blocked) image
could fire before the handler existed, leaving the promise_test hung.
Create the image in script and attach handlers before setting src. Also
add timeout=long for the 18 serial iframe loads, remove each iframe on
cleanup, and drop a reference to a non-existent helper.sub.js.

inheritance/sandboxed-data-scheme.html: checkReport.sub.js only waits
3s for the report unless the test sets timeout=long (then 20s;
report.py returns as soon as a report arrives). On Mac14 Debug the
sandboxed data: iframe, which gets its own process, plus the report-uri
POST can exceed 3s. Add \<meta name="timeout" content="long">, as other
checkReport.sub.js tests already do.

Bug: 40853415, 439456643, 339853454
Change-Id: I593cc11e3ab803a11334da761e8ba2700a77d974
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8570439
Reviewed-by: Ari Chivukula \<arichiv@chromium.org>
Commit-Queue: Ari Chivukula \<arichiv@chromium.org>
Auto-Submit: Mike Taylor \<miketaylr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1717924}

Component: web-platform-tests → DOM: Security
Product: Testing → Core

CI Results

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

Total 70 tests and 2 subtests

Status Summary

Firefox

OK : 3[GitHub] 66[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt] 67[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug]
PASS: 20[GitHub] 168[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt] 174[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug]
FAIL: 9

Chrome

OK : 3
PASS: 20

Safari

OK : 3
PASS: 20

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ed2aae12b4fc https://hg.mozilla.org/integration/autoland/rev/3912dd33e3cb [wpt PR 63622] - Deflake three CSP WPTs and remove their expectations, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.