[meta] rel=prefetch spec-compliant headers
Categories
(Core :: DOM: Networking, task, P2)
Tracking
()
People
(Reporter: noam.j.rosenthal, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(Keywords: meta, Whiteboard: [necko-triaged])
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Steps to reproduce:
Use a <link rel=prefetch> in multiple browsers.
See https://github.com/whatwg/html/pull/8111 and new failing tests in https://github.com/web-platform-tests/wpt/pull/35707.
Note that this is part of an ongoing standardization effort of an existing feature, so it's understood why this wasn't a "bug" earlier.
Actual results:
The headers are different. Chrome sends Purpose: Prefetch. Firefox Sends X-Moz: Prefetch.
Accept headers are different. Chrome sends something with signed-exchanges, Gecko sends /.
Expected results:
According to the new spec PR and WPTs:
- Prefetch should send a Sec-Purpose: Prefetch header.
- Accept header should be equivalent to navigation
- When consuming prefetch, Vary: Accept should be ignored.
- Prefetching same-site documents should work.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•1 year ago
|
||
Per comments in https://github.com/web-platform-tests/wpt/pull/35707 the tests are flaky in Firefox (but not in Chrome/Safari).
Updated•1 year ago
|
Updated•1 year ago
|
Comment 3•1 year ago
|
||
Updated into meta bug for each change needed. Details here for each change needed by WPT test.
- Sec-Purpose and Sec-Fetch-Dest: Bug 1836328
- No proprietary headers: Bug 1836328
- CORS mode: already done
Prefetch accept and Prefetch document:
We just send Accept: */*
currently, but it should be the same as navigation: Bug 1836334
Updated•10 months ago
|
Comment 4•10 months ago
|
||
Removed from review, to be handled as roadmap project
Comment 5•3 months ago
|
||
We'll track the remaining bugs in rel=prefetch
Updated•3 months ago
|
Description
•