Closed Bug 2080844 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63448 - Update wpt tests for CSP script-src 'trusted-types-eval'

Categories

(Core :: DOM: Security, 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 63448 into mozilla-central (this bug is closed when the sync is complete).

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

Byungwoo Lee <blee@igalia.com> wrote:

Update wpt tests for CSP script-src 'trusted-types-eval'

Rewrite the 'trusted-types-eval' wpt tests to use a separate
promise_test() with a EventWatcher for each subtest. Previously,
all subtests shared securitypolicyviolation listeners, so a
subtest could pass or fail because of another subtest's
violation.

Also add subtests for scripts injected via setTimeout() and
setInterval().

Bug: 388437274
Force-WPT-Export: true
Change-Id: Ib76d9162b7438174f4ae7d9241297a925ce46900
Reviewed-on: https://chromium-review.googlesource.com/8529548
WPT-Export-Revision: 49d94419fb61c7a0589ddae55456b72e602a51cb

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 97 tests and 6 subtests

Status Summary

Firefox

OK : 4[GitHub] 93[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 94[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-linux2404-64-debug, Gecko-linux2404-64-opt]
PASS : 24[GitHub] 211[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 214[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-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL : 32
TIMEOUT: 1[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt] 3[Gecko-windows11-64-25h2-debug]
ERROR : 1

Chrome

OK : 4
PASS : 20
FAIL : 4

Safari

OK : 3
PASS : 18
TIMEOUT: 2
NOTRUN : 2

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/4104706843b0 https://hg.mozilla.org/integration/autoland/rev/88ce2c7bbb3a [wpt PR 63448] - Update wpt tests for CSP script-src 'trusted-types-eval', a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.