Closed Bug 2091986 Opened 13 days ago Closed 13 days ago

browser_thumbnails_bg_no_cookies_sent.js fails when run twice in a row because its cookie is never removed

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 external file)

toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_sent.js sets a color=green cookie on mochi.test through thumbnails_background.sjs and never removes it. When the test runs a second time in the same browser (the upcoming mochitest-browser-chrome-repeat jobs), the page is already green on first load, so the test fails with "The page shouldn't be green yet."

The fix removes the cookie in a registerCleanupFunction.

The color=green cookie stayed set for mochi.test, so a second run of the test found the page already green.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0bce156df438 https://hg.mozilla.org/integration/autoland/rev/f63658214e96 Remove the cookie set by browser_thumbnails_bg_no_cookies_sent.js at the end of the test, r=firefox-desktop-core-reviewers ,mossop.
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: