Closed Bug 2092076 Opened 15 days ago Closed 15 days ago

browser_save_link-perwindowpb.js fails when run twice in a row: its cookie outlives the test

Categories

(Core :: Networking: Cookies, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 external file)

browser/base/content/test/browser-general/browser_save_link-perwindowpb.js fails on the second run of the upcoming mochitest-browser-chrome-repeat jobs: 1 cookie should be set - Got +0, expected 1.

The first save, from a regular window, gets the cookie foopy=1 from bug792517.sjs, and the test never clears it. On the second run the request already carries the cookie, so the server sets none and gNumSet stays 0.

The fix clears cookies in the test's registerCleanupFunction. It also removes the verify-standalone skip-if, which is no longer needed.

The Bugbug bot thinks this bug should belong to the 'Core::Networking: Cookies' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Networking: Cookies
Product: Firefox → Core

The first save sets a foopy cookie in the regular session; it outlived the test, so a second run's regular-window request sent it and no new cookie was set. The verify-standalone skip-if from bug 1995208 is no longer needed.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/bcc3739ee4b6 https://hg.mozilla.org/integration/autoland/rev/9b706d8f6412 Clear the cookie browser_save_link-perwindowpb.js sets, so the test passes when run again, r=firefox-desktop-core-reviewers ,mossop.
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
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: