Closed Bug 1944474 Opened 25 days ago Closed 21 days ago

[wpt-sync] Sync PR 50360 - Use assert_throws_js in content-security-policy/securitypolicyviolation/source-file.html

Categories

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

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Frédéric Wang <fwang@igalia.com> wrote:

Use assert_throws_js in content-security-policy/securitypolicyviolation/source-file.html

Currently it's using the pattern

try { ...; assert_unreached(); } catch (e) {}

but then the assertion thrown by assert_unreached() is ignored by the catch.

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Blocks: 1944479
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests and 17 subtests

Status Summary

Firefox

OK : 1
FAIL : 17
ERROR: 1

Chrome

OK : 1
PASS : 17

Safari

ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /content-security-policy/securitypolicyviolation/source-file.html [wpt.fyi]: ERROR [GitHub], OK [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: ERROR)
    • Basic HTTPS URL: FAIL (Chrome: PASS)
    • Basic HTTP URL: FAIL (Chrome: PASS)
    • Basic WSS URL: FAIL (Chrome: PASS)
    • Basic WS URL: FAIL (Chrome: PASS)
    • Fragment: FAIL (Chrome: PASS)
    • Query: FAIL (Chrome: PASS)
    • Port: FAIL (Chrome: PASS)
    • User:password: FAIL (Chrome: PASS)
    • User: FAIL (Chrome: PASS)
    • Invalid URL: FAIL (Chrome: PASS)
    • file:: FAIL (Chrome: PASS)
    • Custom protocol: FAIL (Chrome: PASS)
    • about:blank: FAIL (Chrome: PASS)
    • about:custom: FAIL (Chrome: PASS)
    • data:: FAIL (Chrome: PASS)
    • blob:: FAIL (Chrome: PASS)
    • javascript:: FAIL (Chrome: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/136247308096 [wpt PR 50360] - Use assert_throws_js in content-security-policy/securitypolicyviolation/source-file.html, a=testonly
Status: NEW → RESOLVED
Closed: 21 days ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.