Closed Bug 2091377 Opened 17 days ago Closed 14 days ago

browser_scriptCache_responseHeaders.js fails when run twice in the same browser

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
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.

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.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7568f9d6b177 https://hg.mozilla.org/integration/autoland/rev/943d365e0668 Remove the cookie set by browser_scriptCache_responseHeaders.js when it finishes, r=bthrall.
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

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)

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: