Closed Bug 1788167 Opened 2 years ago Closed 3 months ago

[meta] rel=prefetch spec-compliant headers

Categories

(Core :: DOM: Networking, task, P2)

task

Tracking

()

RESOLVED DUPLICATE of bug 1746396

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.

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Blocks: rel=prefetch
Component: DOM: Core & HTML → DOM: Networking
Priority: -- → P2
Whiteboard: [necko-triaged]
Severity: -- → N/A
Type: enhancement → task
Whiteboard: [necko-triaged] → [necko-triaged] [necko-priority-review]

Per comments in https://github.com/web-platform-tests/wpt/pull/35707 the tests are flaky in Firefox (but not in Chrome/Safari).

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: meta
Summary: Align <link rel=prefetch> headers with spec → [meta] rel=prefetch spec-compliant headers

Updated into meta bug for each change needed. Details here for each change needed by WPT test.

Prefetch headers:

Prefetch accept and Prefetch document:
We just send Accept: */* currently, but it should be the same as navigation: Bug 1836334

Whiteboard: [necko-triaged] [necko-priority-review] → [necko-triaged]

Removed from review, to be handled as roadmap project

We'll track the remaining bugs in rel=prefetch

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: rel=prefetch
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.