Commit 2b017c1b authored by Alex Catarineu's avatar Alex Catarineu Committed by Richard Pospesel
Browse files

Bug 40166: Disable security.certerrors.mitm.auto_enable_enterprise_roots

parent b52775f5
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1248,6 +1248,20 @@ BrowserGlue.prototype = {
    // handle any UI migration
    this._migrateUI();

    // Clear possibly auto enabled enterprise_roots prefs (see bug 40166)
    if (
      !Services.prefs.getBoolPref(
        "security.certerrors.mitm.auto_enable_enterprise_roots"
      ) &&
      Services.prefs.getBoolPref(
        "security.enterprise_roots.auto-enabled",
        false
      )
    ) {
      Services.prefs.clearUserPref("security.enterprise_roots.enabled");
      Services.prefs.clearUserPref("security.enterprise_roots.auto-enabled");
    }

    if (!Services.prefs.prefHasUserValue(PREF_PDFJS_ISDEFAULT_CACHE_STATE)) {
      PdfJs.checkIsDefault(this._isNewProfile);
    }