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)
Toolkit
Content Prompts
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.
| Assignee | ||
Comment 1•6 days ago
|
||
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.
Pushed by fqueze@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/78f5fec6ae4f
https://hg.mozilla.org/integration/autoland/rev/3cb78a33d736
Clear the HTTP auth cache after test_subresources_prompts.html, r=mossop.
Comment 3•2 days ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
status-firefox163:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•