f838c9
diff -up firefox-84.0.2/security/certverifier/NSSCertDBTrustDomain.cpp.nss-hack firefox-84.0.2/security/certverifier/NSSCertDBTrustDomain.cpp
f838c9
--- firefox-84.0.2/security/certverifier/NSSCertDBTrustDomain.cpp.nss-hack      2021-01-11 12:12:02.585514543 +0100
f838c9
+++ firefox-84.0.2/security/certverifier/NSSCertDBTrustDomain.cpp       2021-01-11 12:47:50.345984582 +0100
f838c9
@@ -1619,6 +1619,15 @@ SECStatus InitializeNSS(const nsACString
f838c9
     return srv;
f838c9
   }
f838c9

f838c9
+  /* Sets the NSS_USE_ALG_IN_ANY_SIGNATURE bit.
f838c9
+   * does not change NSS_USE_ALG_IN_CERT_SIGNATURE,
f838c9
+   * so policy will still disable use of sha1 in
f838c9
+   * certificate related signature processing. */
f838c9
+  srv = NSS_SetAlgorithmPolicy(SEC_OID_SHA1, NSS_USE_ALG_IN_ANY_SIGNATURE, 0);
f838c9
+  if (srv != SECSuccess) {
f838c9
+    NS_WARNING("Unable to use SHA1 for Add-ons, expect broken/disabled Add-ons. See https://bugzilla.redhat.com/show_bug.cgi?id=1908018 for details.");
f838c9
+  }
f838c9
+
f838c9
   if (nssDbConfig == NSSDBConfig::ReadWrite) {
f838c9
     UniquePK11SlotInfo slot(PK11_GetInternalKeySlot());
f838c9
     if (!slot) {