Closed Bug 1633588 Opened 1 year ago Closed 11 months ago

[wpt-sync] Sync PR 23280 - Add about:blank iframe referrer tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox78 fixed)

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, )

Details

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

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

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

Dominic Farolino <dom@chromium.org> wrote:

Add about:blank iframe referrer tests

This CL adds the following about:blank iframe "inheritance" tests:

  • A test ensuring that the document.referrer for about:blank iframes
    is set to the full uncensored URL of the creator document, regardless
    of its referrer policy. This is for https://crbug.com/1075729.
  • A test ensuring that an about:blank iframe inherits its creator
    document's referrer policy. This is for https://crbug.com/1075738.

R=domenic@chromium.org, hiroshige@chromium.org

Bug: 1075729, 1075738
Change-Id: I215e82da4c72028b2597097d2340179a70dbffc8

Reviewed-on: https://chromium-review.googlesource.com/2168653
WPT-Export-Revision: 6743202632ee4fb8cafb651cb6f73642377f0610

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Component: DOM: Security → web-platform-tests
Product: Core → Testing
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

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

Total 68 tests

Status Summary

Firefox

PASS : 67
FAIL : 3
TIMEOUT: 1
NOTRUN : 1

Chrome

OK : 1
PASS : 2
FAIL : 2

Safari

OK : 1
PASS : 2
FAIL : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/referrer-policy/generic/inheritance/iframe-inheritance-about-blank.html: TIMEOUT
The fetch() API in an about:blank iframe with the 'client' referrer is fetched with no 'Referer' header: FAIL
A subresource fetched from an about:blank iframe is fetched with no 'Referer' header: NOTRUN

New Tests That Don't Pass

/referrer-policy/generic/inheritance/iframe-inheritance-about-blank.html: TIMEOUT (Chrome: OK, Safari: OK)
The value of document.referrer in an about:blank iframe is the outer document's full URL, regardless of referrer policy: FAIL (Chrome: FAIL, Safari: FAIL)
The fetch() API in an about:blank iframe with the 'client' referrer is fetched with no 'Referer' header: FAIL (Chrome: PASS, Safari: PASS)
A subresource fetched from an about:blank iframe is fetched with no 'Referer' header: NOTRUN (Chrome: PASS, Safari: PASS)
The fetch() API in an about:blank iframe 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: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/93184a590f46
[wpt PR 23280] - Add about:blank iframe referrer tests, a=testonly
https://hg.mozilla.org/integration/autoland/rev/50af11dcaed0
[wpt PR 23280] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6913964af148
[wpt PR 23280] - Add about:blank iframe referrer tests, a=testonly
https://hg.mozilla.org/integration/autoland/rev/f389f7f76f50
[wpt PR 23280] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 1 year ago11 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.