From 6a0d674576b05b76364533912d30f2b56a446386 Mon Sep 17 00:00:00 2001 From: K4sum1 Date: Sat, 22 Jun 2024 21:10:59 -0700 Subject: [PATCH] Enable SQL and disable DBM --- application/basilisk/confvars.sh | 2 ++ .../palemoon/components/nsBrowserGlue.js | 21 ------------------- application/palemoon/confvars.sh | 4 ++++ 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/application/basilisk/confvars.sh b/application/basilisk/confvars.sh index 7fcbb1a703..18ac2bdb3c 100644 --- a/application/basilisk/confvars.sh +++ b/application/basilisk/confvars.sh @@ -59,6 +59,8 @@ MOZ_SERVICES_SYNC=1 MOZ_SERVICES_HEALTHREPORT= MOZ_GAMEPAD=1 MOZ_AV1=1 +MOZ_SECURITY_SQLSTORE=1 +NSS_DISABLE_DBM=1 if test "$OS_ARCH" = "WINNT" -o \ "$OS_ARCH" = "Darwin"; then diff --git a/application/palemoon/components/nsBrowserGlue.js b/application/palemoon/components/nsBrowserGlue.js index b66881dbf6..1ebb760f5e 100644 --- a/application/palemoon/components/nsBrowserGlue.js +++ b/application/palemoon/components/nsBrowserGlue.js @@ -1551,27 +1551,6 @@ BrowserGlue.prototype = { Services.prefs.clearUserPref("security.cert_pinning.enforcement_level"); } - if (currentUIVersion < 21) { - // Remove key4.db and cert9.db if those files exist - // XXX: Remove this code block once we actually start using them. - let dsCertFile = Cc["@mozilla.org/file/directory_service;1"] - .getService(Ci.nsIProperties) - .get("ProfD", Ci.nsIFile); - dsKeyFile = dsCertFile.clone(); - dsCertFile.append("cert9.db"); - if (dsCertFile.exists()) { - try { - dsCertFile.remove(false); - } catch(e) {} - } - dsKeyFile.append("key4.db"); - if (dsKeyFile.exists()) { - try { - dsKeyFile.remove(false); - } catch(e) {} - } - } - if (currentUIVersion < 23) { if (Services.prefs.prefHasUserValue("layers.acceleration.disabled")) { let HWADisabled = Services.prefs.getBoolPref("layers.acceleration.disabled"); diff --git a/application/palemoon/confvars.sh b/application/palemoon/confvars.sh index 4f504264a0..9da99d1e20 100644 --- a/application/palemoon/confvars.sh +++ b/application/palemoon/confvars.sh @@ -47,6 +47,10 @@ MOZ_PHOENIX=1 # Lightweight Themes MOZ_PERSONAS=1 +# Enable SQL storage format for certs and passwords in NSS +MOZ_SECURITY_SQLSTORE=1 +NSS_DISABLE_DBM=1 + # Browser Feature: Profile Migration Component MOZ_PROFILE_MIGRATOR=