Closed Bug 1681515 Opened 5 years ago Closed 4 years ago

[wpt-sync] Sync PR 26818 - 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 26818 into mozilla-central (this bug is closed when the sync is complete).

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

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

CSP: Fix asserted violatedDirective in WPT CSP report

Some Web Platform Tests for Content Security Policy were wrongly
expecting the violated directives of CSP reports for CSS styles to be
'style-src' instead of 'style-src-attr' and 'style-src-elem'. This
change fixes that.

Bug: 694525, 651742
Change-Id: Id13f697eaf8ed72fba1e56eb7b0f7ac2a5837408
Reviewed-on: https://chromium-review.googlesource.com/2580810
WPT-Export-Revision: e51eea35fb46b9dbca07e5f309948781cd71fa62

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
PASS : 23
FAIL : 2

Chrome

OK : 2
PASS : 21
FAIL : 4

Safari

OK : 1
PASS : 18
FAIL : 6
TIMEOUT: 1
NOTRUN : 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html
Test that violation report event was fired: FAIL (Chrome: PASS, Safari: NOTRUN)
/content-security-policy/style-src/style-blocked.sub.html
Expecting logs: ["violated-directive=style-src-elem","PASS"]: FAIL (Chrome: FAIL, Safari: FAIL)

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