Closed Bug 2045809 Opened 5 months ago Closed 4 months ago

<link rel=prefetch> reuses a same-site cross-origin document on navigation that should be ORB-blocked from caching (preload/prefetch-document.html)

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: acreskey, Assigned: acreskey)

References

(Blocks 5 open bugs)

Details

(Whiteboard: [necko-triaged][fxpe])

Attachments

(1 external file)

The web platform test preload/prefetch-document.html has a failing subtest:

The test prefetches a same-site, cross-origin document and expects the subsequent navigation not to reuse it (server should see 2 fetches); Firefox reuses the prefetched response (1 fetch).

Blocks: rel=prefetch
Blocks: orb

ORB validates opaque responses asynchronously, after they're committed to
the cache, so a blocked response was left cached and could be reused by a
later same-partition request (e.g. a navigation reusing a prefetch). Doom
the committed entry when ORB blocks.

Fixes the "same-site different-origin document prefetch without 'as' should
not be consumed" subtest in preload/prefetch-document.html.

Assignee: nobody → acreskey
Status: NEW → ASSIGNED
Blocks: 1810960
Pushed by acreskey@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6680cfc5b280 https://hg.mozilla.org/integration/autoland/rev/12e8b16ca9e1 Doom ORB-blocked responses so they aren't reused from the HTTP cache; r=sunil,necko-reviewers,farre
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
See Also: → 2051315
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: