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)
Core
Networking
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).
- Test: https://searchfox.org/mozilla-central/source/testing/web-platform/tests/preload/prefetch-document.html#37
- Current expectation (expected: FAIL): https://searchfox.org/mozilla-central/source/testing/web-platform/meta/preload/prefetch-document.html.ini
- Cross-browser results: https://wpt.fyi/results/preload/prefetch-document.html?label=master&label=experimental&aligned&q=preload
Updated•5 months ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/FXPE-67
| Assignee | ||
Updated•5 months ago
|
Blocks: rel=prefetch
| Assignee | ||
Comment 1•5 months ago
|
||
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.
Updated•5 months ago
|
Assignee: nobody → acreskey
Status: NEW → ASSIGNED
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
status-firefox154:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Updated•3 months ago
|
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in
before you can comment on or make changes to this bug.
Description
•