Files
acreskeyMoz 08fc7fbe75 Bug 2045810 - Send the document Accept header for <link rel=prefetch> requests; r=sunil,necko-reviewers
Per Fetch step 12.2, a request whose initiator is "prefetch" sends the
document Accept header regardless of destination; nsPrefetchService was
sending Accept: */*.

Fixes the "Document prefetch should send the exact Accept header as
navigation" subtest in preload/prefetch-accept.html and
preload/prefetch-document.html.

Differential Revision: https://phabricator.services.mozilla.com/D305367
2026-06-10 11:41:54 +00:00
..