Client auth browser tests fail when run twice in a row
Categories
(Core :: Security: PSM, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
Details
Attachments
(3 external files)
When each test is run twice in a row (--repeat=1, the upcoming mochitest-repeat jobs), three client certificate tests fail on their second run because the first run leaves state behind:
security/manager/ssl/tests/mochitest/browser/browser_clientAuth_connection.js:testCertFilteringWithIntermediateadds an enterprise intermediate withnsINSSComponent.addEnterpriseIntermediate()and tries to remove it by settingsecurity.enterprise_roots.enabledtotrue. That pref already defaults totrue, so nothing changes and the intermediate stays loaded. The second run then fails with "3 certificates should be available - 4 == 3".security/manager/ssl/tests/mochitest/browser/browser_clientAuthRememberService.js:testDeletingRememberedDecisionsleaves remembered client auth decisions behind, so on the second runchooseCertificateis never called on the first visit torequireclientcert.example.com.browser/components/originattributes/test/browser/browser_clientAuth.js: remembered decisions survive the test, so on the second run no tab shows the certificate dialog and the isolation checks fail.
| Assignee | ||
Comment 1•22 days ago
|
||
A later run of the test would otherwise not be asked for a certificate on its
first visits.
| Assignee | ||
Comment 2•22 days ago
|
||
A later run of the test would otherwise find the certificate remembered in
every tab and report the tabs as not isolated.
| Assignee | ||
Comment 3•22 days ago
|
||
security.enterprise_roots.enabled defaults to true, so setting it to true
did not change it and the intermediate stayed loaded, giving a later run of
the test one more client certificate to choose from.
https://hg.mozilla.org/mozilla-central/rev/d7611cd98994
https://hg.mozilla.org/mozilla-central/rev/e04afe31c103
https://hg.mozilla.org/mozilla-central/rev/d558361b704a
Updated•7 days ago
|
Description
•