Closed Bug 2095740 Opened 6 days ago Closed 2 days ago

test_subresources_prompts.html times out when run twice in the same browser because its HTTP auth credentials stay cached

Categories

(Toolkit :: Content Prompts, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

toolkit/components/prompts/test/test_subresources_prompts.html logs in to authenticate.sjs on two origins in runTestAuth and never clears the HTTP auth cache. When the test runs a second time in the same browser (the upcoming mochitest-plain-repeat jobs), the cached credentials are sent without a 401, so no auth prompt opens and the test times out waiting for it.

The fix clears nsIHttpAuthManager in a cleanup function, as the passwordmgr prompt tests already do.

Blocks: 2095794

runTestAuth logs in to authenticate.sjs on both origins, and the cached credentials made a second run of the test load them without the prompt it waits for.

Status: ASSIGNED → RESOLVED
Closed: 2 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: