Closed Bug 1617621 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 21934 - CSP nonce: correct some SVG assertions

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

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

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

Anne van Kesteren <annevk@annevk.nl> wrote:

CSP nonce: correct some SVG assertions

Chrome implements nonce reflection incorrectly for SVG and the tests (used to) reflect that...

Also change assertion order of a custom element test to be more useful.

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

CI Results

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

Total 3 tests and 9 subtests

Status Summary

Firefox

OK : 3
PASS : 8
FAIL : 22

Chrome

OK : 3
PASS : 28
FAIL : 2

Safari

OK : 1
PASS : 2
FAIL : 10
ERROR: 2

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/content-security-policy/nonce-hiding/script-nonces-hidden.html
Writing 'nonce' content attribute.: FAIL

New Tests That Don't Pass

/content-security-policy/nonce-hiding/svgscript-nonces-hidden-meta.sub.html
Cloned node retains nonce.: FAIL (Chrome: PASS)
Writing 'nonce' content attribute.: FAIL (Chrome: FAIL)
Cloned node retains nonce when inserted.: FAIL (Chrome: PASS)
Reading 'nonce' content attribute and IDL attribute.: FAIL (Chrome: PASS)
Document-written script's nonce value.: FAIL (Chrome: PASS)
createElement.setAttribute.: FAIL (Chrome: PASS)
/content-security-policy/nonce-hiding/script-nonces-hidden.html
Cloned node retains nonce.: FAIL (Chrome: PASS, Safari: FAIL)
createElement.nonce.: FAIL (Chrome: PASS, Safari: FAIL)
Writing 'nonce' content attribute.: FAIL (Chrome: PASS, Safari: PASS)
Cloned node retains nonce when inserted.: FAIL (Chrome: PASS, Safari: FAIL)
Reading 'nonce' content attribute and IDL attribute.: FAIL (Chrome: PASS, Safari: FAIL)
Document-written script's nonce value.: FAIL (Chrome: PASS, Safari: FAIL)
setAttribute('nonce') overwrites '.nonce' upon insertion.: FAIL (Chrome: PASS, Safari: FAIL)
Custom elements expose the correct events.: FAIL (Chrome: PASS, Safari: FAIL)
Nonces don't leak via CSS side-channels.: FAIL (Chrome: PASS, Safari: FAIL)
createElement.setAttribute.: FAIL (Chrome: PASS, Safari: FAIL)
/content-security-policy/nonce-hiding/svgscript-nonces-hidden.html
Cloned node retains nonce.: FAIL (Chrome: PASS)
Writing 'nonce' content attribute.: FAIL (Chrome: FAIL)
Cloned node retains nonce when inserted.: FAIL (Chrome: PASS)
Reading 'nonce' content attribute and IDL attribute.: FAIL (Chrome: PASS)
Document-written script's nonce value.: FAIL (Chrome: PASS)
createElement.setAttribute.: FAIL (Chrome: PASS)

Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1fce956b0bae [wpt PR 21934] - CSP nonce: correct some SVG assertions, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Regressions: 1618169
You need to log in before you can comment on or make changes to this bug.