Closed Bug 2091987 Opened 13 days ago Closed 12 days ago

browser_installssl.js fails when run twice in the same browser

Categories

(Toolkit :: Add-ons Manager, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

toolkit/mozapps/extensions/test/browser/browser_installssl.js fails on its second run in the same browser (mochitest-browser-chrome-repeat, test-verify) with "Should have seen the right result for an install from https://expired.example.com/ - Got +0, expected -1" and similar.

The XPIs downloaded from nocert/self-signed/untrusted/expired.example.com while the test's certificate overrides are set stay in the HTTP cache. The cleanup removes the overrides but not the cache, so the next run gets the XPIs from cache without a certificate error. The fix clears the HTTP cache in the cleanup function and removes the verify-standalone skip-if.

The XPIs downloaded thanks to the overrides stayed cached, so a second run in the same browser got them from the cache, without any certificate error. This also removes the verify-standalone skip-if from the bug 1995208 test-verify annotations: --verify passes now.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6f3e5c023e68 https://hg.mozilla.org/integration/autoland/rev/683a657d2146 Clear the HTTP cache when browser_installssl.js removes its certificate overrides, r=extension-reviewers,rpl.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 12 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: