Closed Bug 2078009 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63238 - wpt: Bounce CSP errors to opener immediately in `navigation-support.js`

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 63238 into mozilla-central (this bug is closed when the sync is complete).

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

Martin Robinson <martin@abandonedwig.info> wrote:

wpt: Bounce CSP errors to opener immediately in navigation-support.js

This fixes an issue with the flakiness of this test for engines that do
not fire CSP errors synchronously when opening a WebSocket (Servo and
WebKit namely). A previous version of this test had an immediate
notification, but it was removed in web-platform-tests/wpt#51758. That
commit removed the immediate notification because a violation was added
as a marker. This change restores the immediate notification (leaving
the marker behavior), but does not bounce it if it's not on the list of
violations we are waiting for.

Testing: This is a speculative fix for flaky Trusted Types tests. Once this
changes lands we can observe whether or not test results improve.

Reviewed in servo/servo#48602

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

CI Results

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

Total 239 tests

Status Summary

Firefox

OK : 14[GitHub] 237[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-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 55[GitHub] 3655[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3656[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 3660[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]
FAIL: 21

Chrome

OK : 14
PASS: 47
FAIL: 8

Safari

OK : 14
PASS: 55

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /trusted-types/trusted-types-from-literal.tentative.html [wpt.fyi]
    • TrustedHTML.fromLiteral is supported: FAIL
    • TrustedHTML.fromLiteral: Basic string literal works.: FAIL
    • TrustedHTML.fromLiteral: Empty string literal works.: FAIL
    • TrustedHTML.fromLiteral: A very important emoji works.: FAIL
    • TrustedHTML.fromLiteral: Multi-line string literal works.: FAIL
    • TrustedHTML.fromLiteral: Bound method works.: FAIL
    • TrustedScript.fromLiteral is supported: FAIL
    • TrustedScript.fromLiteral: Basic string literal works.: FAIL
    • TrustedScript.fromLiteral: Empty string literal works.: FAIL
    • TrustedScript.fromLiteral: A very important emoji works.: FAIL
    • TrustedScript.fromLiteral: Multi-line string literal works.: FAIL
    • TrustedScript.fromLiteral: Bound method works.: FAIL
    • TrustedScriptURL.fromLiteral is supported: FAIL
    • TrustedScriptURL.fromLiteral: Basic string literal works.: FAIL
    • TrustedScriptURL.fromLiteral: Empty string literal works.: FAIL
    • TrustedScriptURL.fromLiteral: A very important emoji works.: FAIL
    • TrustedScriptURL.fromLiteral: Multi-line string literal works.: FAIL
    • TrustedScriptURL.fromLiteral: Bound method works.: FAIL
    • TrustedHTML.fromLiteral: Normalization of value works.: FAIL
    • TrustedScript.fromLiteral: No normalization of value occurs.: FAIL
    • TrustedScriptURL.fromLiteral: No normalization of value occurs.: FAIL
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fa2cde4b8fc4 https://hg.mozilla.org/integration/autoland/rev/22cacc31bb22 [wpt PR 63238] - wpt: Bounce CSP errors to opener immediately in `navigation-support.js`, 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.