Closed Bug 2076691 Opened 2 months ago Closed 19 days ago

Speculation-rules prefetch is still used for navigation after a `Clear-Site-Data: "prefetchCache"` response

Categories

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

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: smayya, Assigned: acreskey)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [necko-triaged][fxpe], [wptsync upstream])

Attachments

(1 external file)

speculation-rules/prefetch/clear-prefetch-cache-after-clear-site-data-cache.https.html fails with the patches for bug 2070841:

clear-site-data prefetchCache headers should prevent it from being fetched: assert_equals: expected (undefined) undefined but got (string) "prefetch"

The sibling subtest using Clear-Site-Data: "cache" passes, so clearing the HTTP cache works. The "prefetchCache" directive doesn't remove the document's prefetch records, so the navigation is still activated from the prefetch. Per spec, "prefetchCache" should clear the prefetch records so they can't be used.

https://wpt.fyi/results/speculation-rules/prefetch?label=master&label=experimental&aligned&q=clear-prefetch-cache-after-clear-site-data-cache.https.html

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]
Assignee: nobody → acreskey
Whiteboard: [necko-triaged] → [necko-triaged][fxpe]
Blocks: 2087619
Pushed by acreskey@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5a6630669c3a https://hg.mozilla.org/integration/autoland/rev/5b119b26dc1b Drop speculation-rules prefetch records on Clear-Site-Data "prefetchCache". r=sunil,jjaschke,avandolder,manuel
Status: NEW → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Whiteboard: [necko-triaged][fxpe] → [necko-triaged][fxpe], [wptsync upstream error]

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/65061 for changes under testing/web-platform/tests

Whiteboard: [necko-triaged][fxpe], [wptsync upstream error] → [necko-triaged][fxpe], [wptsync upstream]
Flags: needinfo?(aborovova)
Flags: needinfo?(james)

Upstream PR merged by moz-wptsync-bot

QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: