Verified Commit 612d54e8 authored by Alex Catarineu's avatar Alex Catarineu Committed by Pier Angelo Vendrame
Browse files

Bug 40166: Disable security.certerrors.mitm.auto_enable_enterprise_roots

parent 045f13ab
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1476,6 +1476,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)) {
      lazy.PdfJs.checkIsDefault(this._isNewProfile);
    }