Closed Bug 1681253 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 26792 - CSP: Fix asserted violatedDirective in WPT CSP report

Categories

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

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

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

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

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

b'Antonio Sartori <antoniosartori@chromium.org>' wrote:

CSP: Fix asserted violatedDirective in WPT CSP report

A Web Platform Test for Content Security Policy was wrongly expecting
the violated directive of a CSP report for a \<script> element
violation to be 'script-src'. This change fixes that.

Bug: 694525, 651742
Change-Id: Ia499dbf49678e4d6e834c51ab472f874063badf5
Reviewed-on: https://chromium-review.googlesource.com/2577683
WPT-Export-Revision: bd139278a50adc4727cf70012d98ed8c69eb944a

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

CI Results

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

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
PASS : 1
FAIL : 1

Chrome

OK : 1
PASS : 2

Safari

PASS : 1
TIMEOUT: 1
NOTRUN : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/content-security-policy/script-src/script-src-1_10.html
Test that securitypolicyviolation event is fired: FAIL (Chrome: PASS, Safari: NOTRUN)

Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/748eb163920e [wpt PR 26792] - CSP: Fix asserted violatedDirective in WPT CSP report, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.