[wpt-sync] Sync PR 36022 - Prefetch: Use referring page's referrer policy for the request
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox107 fixed)
| Tracking | Status | |
|---|---|---|
| firefox107 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 36022 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36022
Details from upstream follow.
Kevin McNee <mcnee@chromium.org> wrote:
Prefetch: Use referring page's referrer policy for the request
We plumb the referrer and referrer policy to the PrefetchService where
they are used for the prefetch network request.We also introduce the restriction for prefetch to use "sufficiently
strict speculative navigation referrer policies" per the spec.Bug: 1355146
Change-Id: If18a61270e34519b339c8b534ca426efdb28fed6
Reviewed-on: https://chromium-review.googlesource.com/3910832
WPT-Export-Revision: 61dda5ef4c2ae85c50cfb834184cdfdc180f1424
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 20 tests and 1 subtests
Status Summary
Firefox
OK : 18[Gecko-android-em-7.0-x86_64-qr-debug-isolated-process-geckoview] 20[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt, GitHub]
FAIL : 20[Gecko-android-em-7.0-x86_64-qr-debug-isolated-process-geckoview] 22[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt, GitHub]
TIMEOUT: 2
Chrome
OK : 20
FAIL : 22
Safari
OK : 20
FAIL : 22
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /speculation-rules/prefetch/anonymous-client.https.html [wpt.fyi]
- test anonymous-client url prefetch for cross origin pages:
FAIL(Chrome:FAIL, Safari:FAIL)
- test anonymous-client url prefetch for cross origin pages:
- /speculation-rules/prefetch/cross-origin-cookies.https.html [wpt.fyi]
- speculation rules based prefetch should not use cookies for cross origin urls.:
FAIL(Chrome:FAIL, Safari:FAIL)
- speculation rules based prefetch should not use cookies for cross origin urls.:
- /speculation-rules/prefetch/duplicate-urls.https.html [wpt.fyi]
- browser should remove duplicate urls from prefetch buffer.:
FAIL(Chrome:FAIL, Safari:FAIL)
- browser should remove duplicate urls from prefetch buffer.:
- /speculation-rules/prefetch/invalid-rules.https.html [wpt.fyi]
- an unrecognized key in a prefetch rule should prevent it from being fetched:
FAIL(Chrome:FAIL, Safari:FAIL)
- an unrecognized key in a prefetch rule should prevent it from being fetched:
- /speculation-rules/prefetch/multiple-url.https.html [wpt.fyi]
- browser should be able to prefetch multiple urls:
FAIL(Chrome:FAIL, Safari:FAIL)
- browser should be able to prefetch multiple urls:
- /speculation-rules/prefetch/prefetch-single.https.html?from_protocol=http&to_protocol=http [wpt.fyi]
- test single http url prefetch from a http url:
FAIL(Chrome:FAIL, Safari:FAIL)
- test single http url prefetch from a http url:
- /speculation-rules/prefetch/prefetch-single.https.html?from_protocol=https&to_protocol=https [wpt.fyi]
- test single https url prefetch from a https url:
FAIL(Chrome:FAIL, Safari:FAIL)
- test single https url prefetch from a https url:
- /speculation-rules/prefetch/prefetch-single.https.html?from_protocol=http&to_protocol=https [wpt.fyi]
- test single https url prefetch from a http url:
FAIL(Chrome:FAIL, Safari:FAIL)
- test single https url prefetch from a http url:
- /speculation-rules/prefetch/prefetch-single.https.html?from_protocol=https&to_protocol=http [wpt.fyi]
- test single http url prefetch from a https url:
FAIL(Chrome:FAIL, Safari:FAIL)
- test single http url prefetch from a https url:
- /speculation-rules/prefetch/prefetch-status.https.html?status=200&should_prefetch=true [wpt.fyi]
- Check that only prefetched requests with status in 200-299 range are used.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Check that only prefetched requests with status in 200-299 range are used.:
- /speculation-rules/prefetch/prefetch-status.https.html?status=500&should_prefetch=false [wpt.fyi]
- Check that only prefetched requests with status in 200-299 range are used.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Check that only prefetched requests with status in 200-299 range are used.:
- /speculation-rules/prefetch/prefetch-status.https.html?status=400&should_prefetch=false [wpt.fyi]
- Check that only prefetched requests with status in 200-299 range are used.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Check that only prefetched requests with status in 200-299 range are used.:
- /speculation-rules/prefetch/prefetch-status.https.html?status=250&should_prefetch=true [wpt.fyi]:
OK[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt,GitHub],TIMEOUT[Gecko-android-em-7.0-x86_64-qr-debug-isolated-process-geckoview] (Chrome:OK, Safari:OK)- Check that only prefetched requests with status in 200-299 range are used.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Check that only prefetched requests with status in 200-299 range are used.:
- /speculation-rules/prefetch/prefetch-status.https.html?status=299&should_prefetch=true [wpt.fyi]
- Check that only prefetched requests with status in 200-299 range are used.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Check that only prefetched requests with status in 200-299 range are used.:
- /speculation-rules/prefetch/redirect-url.https.html [wpt.fyi]:
OK[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt,GitHub],TIMEOUT[Gecko-android-em-7.0-x86_64-qr-debug-isolated-process-geckoview] (Chrome:OK, Safari:OK)- browser should be able to prefetch redirected urls:
FAIL(Chrome:FAIL, Safari:FAIL)
- browser should be able to prefetch redirected urls:
- /speculation-rules/prefetch/referrer-policy-not-accepted.https.html [wpt.fyi]
- with "unsafe-url" referrer policy:
FAIL(Chrome:FAIL, Safari:FAIL)
- with "unsafe-url" referrer policy:
- /speculation-rules/prefetch/referrer-policy.https.html [wpt.fyi]
- with "strict-origin-when-cross-origin" referrer policy:
FAIL(Chrome:FAIL, Safari:FAIL) - with "strict-origin" referrer policy:
FAIL(Chrome:FAIL, Safari:FAIL) - with "no-referrer" referrer policy:
FAIL(Chrome:FAIL, Safari:FAIL)
- with "strict-origin-when-cross-origin" referrer policy:
- /speculation-rules/prefetch/same-origin-cookies.https.html [wpt.fyi]
- speculation rules based prefetch should use cookies for same origin urls.:
FAIL(Chrome:FAIL, Safari:FAIL)
- speculation rules based prefetch should use cookies for same origin urls.:
- /speculation-rules/prefetch/user-pass.https.html?cross-origin=true [wpt.fyi]
- test www-authenticate basic does not forward credentials to cross-origin pages.:
FAIL(Chrome:FAIL, Safari:FAIL)
- test www-authenticate basic does not forward credentials to cross-origin pages.:
- /speculation-rules/prefetch/user-pass.https.html?cross-origin=false [wpt.fyi]
- test www-authenticate basic does not forward credentials to cross-origin pages.:
FAIL(Chrome:FAIL, Safari:FAIL)
- test www-authenticate basic does not forward credentials to cross-origin pages.:
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/124b559a2cd1
https://hg.mozilla.org/mozilla-central/rev/78824d3bcbce
Description
•