Bug 1561994 - Fix browser_aboutCertError_mitm.js so it passes when security.enterprise_roots.enabled is enabled by default. r=keeler
authorJulien Cristau <jcristau@mozilla.com>
Fri, 28 Jun 2019 08:59:11 +0200
changeset 480554 e1001dd4f7ebbed6490327d47735a1eb4d6c376c
parent 480553 7e8d43bbeb96eb150ece4938ea16ba0fee2a72c2
child 480555 274e4c25f128c96bc200e64fad31d1fbe938f781
push id113556
push userryanvm@gmail.com
push dateFri, 28 Jun 2019 18:10:53 +0000
treeherdermozilla-inbound@274e4c25f128 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1561994
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1561994 - Fix browser_aboutCertError_mitm.js so it passes when security.enterprise_roots.enabled is enabled by default. r=keeler Turn off security.enterprise_roots.enabled for this test since that's what it expects. Differential Revision: https://phabricator.services.mozilla.com/D36334
browser/base/content/test/about/browser_aboutCertError_mitm.js
--- a/browser/base/content/test/about/browser_aboutCertError_mitm.js
+++ b/browser/base/content/test/about/browser_aboutCertError_mitm.js
@@ -56,16 +56,17 @@ add_task(async function checkMitmPriming
 });
 
 // Check that we set the enterprise roots pref correctly on MitM
 add_task(async function checkMitmAutoEnableEnterpriseRoots() {
   await SpecialPowers.pushPrefEnv({"set": [
     [PREF_MITM_PRIMING, true],
     [PREF_MITM_PRIMING_ENDPOINT, UNKNOWN_ISSUER],
     [PREF_MITM_AUTO_ENABLE_ENTERPRISE_ROOTS, true],
+    [PREF_ENTERPRISE_ROOTS, false],
   ]});
 
   let browser;
   let certErrorLoaded;
 
   let prefChanged = TestUtils.waitForPrefChange(PREF_ENTERPRISE_ROOTS, value => value === true);
   await BrowserTestUtils.openNewForegroundTab(gBrowser, () => {
     gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, UNKNOWN_ISSUER);