Closed
Bug 2094409
Opened 9 days ago
Closed 3 days ago
test_link_prefetch.html fails when run twice in the same browser because the prefetch is served from the HTTP cache
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
163 Branch
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
When dom/base/test/test_link_prefetch.html runs a second time in the same browser (as the upcoming mochitest-plain-repeat jobs do), it fails with "prefetch-unsafe-url-with-origin-in-meta tests have to be performed."
The ACTION=test responses of referrer_testserver.sjs have no Cache-Control header, so the first run's <link rel=prefetch> stores them in the HTTP cache. On the second run the same prefetch URL is served from the cache and never reaches the server, so the server records no referrer for it.
The fix is to send Cache-Control: no-cache on those responses.
| Assignee | ||
Comment 1•6 days ago
|
||
On a second run in the same browser, test_link_prefetch.html's prefetch was served from the HTTP cache and never reached the server.
Pushed by fqueze@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/f8f23a79ca3d
https://hg.mozilla.org/integration/autoland/rev/00dc02b85664
Prevent caching of the loads referrer_testserver.sjs records referrers for, r=dom-core-reviewers,smaug.
Pushed by fqueze@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/14e060780b35
https://hg.mozilla.org/integration/autoland/rev/f3417bbcd759
Prevent caching of the loads referrer_testserver.sjs records referrers for, r=dom-core-reviewers,smaug.
Comment 4•3 days ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
status-firefox163:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•