Closed Bug 1696100 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 27870 - CSP: Fix WPT test for CSP inheritance on document.open

Categories

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

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

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

CSP: Fix WPT test for CSP inheritance on document.open

On document.open(), the Content Security Policies of the document open
should not be changed. This CL fixes the existing Web Platform Test to
match the expected behaviour. The test is currently failing, but will
be fixed by https://crrev.com/c/2715285.

Bug: 1149272
Change-Id: I92e7759a022eda069e3d6a486ddff488a8ae7ac1
Reviewed-on: https://chromium-review.googlesource.com/2725110
WPT-Export-Revision: 2c9fb76291cf5a0d9e465f32ed380d9fa8d8bf2c

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

CI Results

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

Total 1 tests and 2 subtests

Status Summary

Firefox

TIMEOUT: 2
NOTRUN : 1

Chrome

OK : 1
PASS : 1
FAIL : 1

Safari

TIMEOUT: 2
NOTRUN : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/content-security-policy/inheritance/document-write-iframe.html: TIMEOUT (Chrome: OK, Safari: TIMEOUT)
document.open() keeps inherited CSPs on empty iframe.: TIMEOUT (Chrome: PASS, Safari: TIMEOUT)
document.open() does not change delivered CSPs.: NOTRUN (Chrome: FAIL, Safari: NOTRUN)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4eba24bc7131
[wpt PR 27870] - CSP: Fix WPT test for CSP inheritance on document.open, a=testonly
https://hg.mozilla.org/integration/autoland/rev/0728de143e90
[wpt PR 27870] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.