Closed Bug 1694635 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 27760 - Add WPT for referrer policy inheritance to popup

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

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

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

Add WPT for referrer policy inheritance to popup

Web platform tests did not cover referrer policy inheritance for a
popup. This CL adds a test for it.

Bug: 1130587
Change-Id: I5005bdf249b707ef1f55b39c717534663a9ecf2e

Reviewed-on: https://chromium-review.googlesource.com/2689774
WPT-Export-Revision: 5518c03ac910c57d5f72bfe24af779a835b83a14

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 4 subtests

Status Summary

Firefox

OK : 1
PASS: 1
FAIL: 3

Chrome

OK : 1
PASS: 3
FAIL: 1

Safari

OK : 1
PASS: 3
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/referrer-policy/generic/inheritance/popup-inheritance-about-blank.html
The fetch() API in an about:blank popup with the 'client' referrer is fetched with no 'Referer' header: FAIL
The fetch() API in an about:blank popup with a custom URL referrer is fetched with a 'Referer` header that uses the outer document's URL along with its referrer policy: FAIL

New Tests That Don't Pass

/referrer-policy/generic/inheritance/popup-inheritance-about-blank.html
The fetch() API in an about:blank popup with the 'client' referrer is fetched with no 'Referer' header: FAIL (Chrome: PASS, Safari: PASS)
The fetch() API in an about:blank popup with a custom URL referrer is fetched with a 'Referer` header that uses the outer document's URL along with its referrer policy: FAIL (Chrome: PASS, Safari: PASS)
The value of document.referrer in an about:blank popup is the outer document's full URL, regardless of referrer policy: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ff00f9d2a2e8
[wpt PR 27760] - Add WPT for referrer policy inheritance to popup, a=testonly
https://hg.mozilla.org/integration/autoland/rev/ee0f0c1d035c
[wpt PR 27760] - 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.