Bug 1561994 - Fix browser_aboutCertError_mitm.js so it passes when security.enterprise_roots.enabled is enabled by default. r=keeler, a=test-only
authorJulien Cristau <jcristau@mozilla.com>
Fri, 28 Jun 2019 08:59:11 +0200
changeset 534091 736e0cd202d566907831f240ab0c434b0a2b21ca
parent 534090 03e5d1efd942fdf0676da8a4ebf5173e24b5c4eb
child 534092 e1fc478056d6b08a5c74c4ba94bf45ad9a00daa6
push id11517
push userryanvm@gmail.com
push dateFri, 28 Jun 2019 21:36:12 +0000
treeherdermozilla-beta@6d5726d82182 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler, test-only
bugs1561994
milestone68.0
Bug 1561994 - Fix browser_aboutCertError_mitm.js so it passes when security.enterprise_roots.enabled is enabled by default. r=keeler, a=test-only 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);