browser_save_link-perwindowpb.js fails when run twice in a row: its cookie outlives the test
Categories
(Core :: Networking: Cookies, task)
Tracking
()
| 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.
Comment 1•15 days ago
|
||
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.
| Assignee | ||
Comment 2•15 days ago
|
||
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.
Updated•13 hours ago
|
Description
•