Closed Bug 2095739 Opened 9 days ago Closed 8 days ago

test_1331680_xhr.html times out when run twice in a row because it leaves its HttpOnly cookie behind

Categories

(Core :: Networking: Cookies, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

netwerk/test/mochitests/test_1331680_xhr.html tries to clear its cookies with document.cookie, but xhr2 is HttpOnly, so that can't delete it. When the test runs a second time in the same browser (the upcoming mochitest-plain-repeat jobs do this), setting the same xhr2 cookie again fires no cookie-changed notification. The test then waits forever and times out. It also leaves xhr1 behind, which fails netwerk/test/mochitests/test_1421324.html.

The fix removes xhr2 with Services.cookies.remove from a chrome script when the test finishes.

Blocks: 2095794

On a second run, setting the unchanged xhr2 fired no cookie-changed notification, so the test timed out and left xhr1 behind for test_1421324.html.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5d2fa533aa73 https://hg.mozilla.org/integration/autoland/rev/dd788c690caa Remove the HttpOnly xhr2 cookie at the end of test_1331680_xhr.html, r=necko-reviewers,valentin.
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: