browser_scriptCache_responseHeaders.js fails when run twice in the same browser
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
Details
Attachments
(1 external file)
dom/tests/browser/browser_scriptCache_responseHeaders.js fails on its second run in mochitest-browser-chrome-repeat jobs with cache should not be used for ?vary - Got +0, expected 1.
The script served by responseHeaders_server.sjs sets document.cookie on example.com, and the test never removes that cookie. On the next run both loads of ?vary send the same leftover cookie, so the Vary: Cookie response is served from the cache.
The fix removes the example.com cookies in the test's cleanup function.
| Assignee | ||
Comment 1•17 days ago
|
||
The script it loads sets a cookie on example.com, so when the test runs again in the same browser the cookie sent with the reloaded ?vary request is the same as the one sent with the first load, and the Vary: Cookie response is served from the cache.
Comment 3•14 days ago
|
||
| bugherder | ||
Comment 4•13 days ago
|
||
Authored by https://github.com/fqueze
https://github.com/mozilla/enterprise-firefox/commit/7568f9d6b17782127dfed38cdb4554734c6022e5
[enterprise-main] Bug 2091377 - Remove the cookie set by browser_scriptCache_responseHeaders.js when it finishes, r=bthrall.
(via GitHub webhook, authenticated as shared-secret)
Updated•1 hour ago
|
Description
•