Closed Bug 1681695 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 26836 - Fix WPT for referrer policy inheritance

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

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

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

Fix WPT for referrer policy inheritance

Executing a javascript: URL does not commit a new document, and
executing a javascript: URL in a srcdoc iframe does not change the
fact that this is a srcdoc iframe. (cf
https://crrev.com/c/2464930). On the other side, the algorithm for
computing the referrer of a srcdoc iframe defers to the parent:
https://w3c.github.io/webappsec-referrer-policy/#strip-url

Bug: 1043895
Change-Id: I144aa288204f9e92d1b41b0f3c64bc0d6274f10f
Reviewed-on: https://chromium-review.googlesource.com/2582045
WPT-Export-Revision: 482820f88a5c6d667f0e98de6bbf19df20564daf

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 1 tests and 4 subtests

Status Summary

Firefox

OK : 1
PASS: 2
FAIL: 2

Chrome

OK : 1
PASS: 1
FAIL: 3

Safari

OK : 1
PASS: 2
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/referrer-policy/generic/inheritance/iframe-inheritance-javascript-child.html
Referrer Policy: iframes with javascript url reuse referrer policy 1: FAIL (Chrome: FAIL, Safari: PASS)
Referrer Policy: iframes with javascript url reuse referrer policy 3: FAIL (Chrome: FAIL, Safari: PASS)

Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3283717a9466 [wpt PR 26836] - Fix WPT for referrer policy inheritance, a=testonly https://hg.mozilla.org/integration/autoland/rev/22d841ec4501 [wpt PR 26836] - Update wpt metadata, 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.