[wpt-sync] Sync PR 63622 - Deflake three CSP WPTs and remove their expectations
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
| 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}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=104656
| Assignee | ||
Comment 2•1 month ago
|
||
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
- /content-security-policy/inheritance/javascript-url-open-in-main-window.html [wpt.fyi]:
SKIP - /content-security-policy/style-src/style-src-error-event-fires.html [wpt.fyi]:
SKIP - /content-security-policy/style-src/style-src-inline-style-nonce-blocked-error-event.html [wpt.fyi]:
SKIP - /content-security-policy/inheritance/auxiliary-blank-document.html [wpt.fyi]
- For transient doc, violation event occurs in auxiliary, not opener window.:
FAIL
- For transient doc, violation event occurs in auxiliary, not opener window.:
- /content-security-policy/inheritance/document-write-iframe.html [wpt.fyi]
- document.open() keeps inherited CSPs on transient about:blank.:
FAIL
- document.open() keeps inherited CSPs on transient about:blank.:
- /content-security-policy/inheritance/frame-src-javascript-url.html [wpt.fyi]
- <iframe src='javascript:...'>'s inherits policy (dynamically inserted <iframe> is blocked):
FAIL
- <iframe src='javascript:...'>'s inherits policy (dynamically inserted <iframe> is blocked):
- /content-security-policy/inheritance/iframe-all-local-schemes-inherit-self.sub.html [wpt.fyi]:
OK[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug],SKIP[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] - /content-security-policy/inheritance/inheritance-from-initiator.sub.html?scheme=blob [wpt.fyi]
- blob: Changing contentWindow.location inherits from who changed it (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).:
FAIL - blob: window.open() inherits from caller (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).:
FAIL - blob: Click on anchor inherits from owner of the anchor (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).:
FAIL
- blob: Changing contentWindow.location inherits from who changed it (apart from javascript:, which keeps target policies, and blob:, which always inherits from creator).:
- /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html [wpt.fyi]
- inline-style-allowed-while-cloning-objects 19:
FAIL - inline-style-allowed-while-cloning-objects 20:
FAIL
- inline-style-allowed-while-cloning-objects 19:
- /content-security-policy/style-src/style-blocked.html [wpt.fyi]
- document.styleSheets should contain an item for the blocked CSS.:
FAIL
- document.styleSheets should contain an item for the blocked CSS.:
Tests Disabled in Gecko Infrastructure
- /content-security-policy/inheritance/javascript-url-open-in-main-window.html [wpt.fyi]:
SKIP - /content-security-policy/style-src/style-src-error-event-fires.html [wpt.fyi]:
SKIP - /content-security-policy/style-src/style-src-inline-style-nonce-blocked-error-event.html [wpt.fyi]:
SKIP - /content-security-policy/inheritance/iframe-all-local-schemes-inherit-self.sub.html [wpt.fyi]:
OK[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-64-25h2-debug],SKIP[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]
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•