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

db788a
+  /* Sets the NSS_USE_ALG_IN_ANY_SIGNATURE bit.
db788a
+   * does not change NSS_USE_ALG_IN_CERT_SIGNATURE,
db788a
+   * so policy will still disable use of sha1 in
db788a
+   * certificate related signature processing. */
db788a
+  srv = NSS_SetAlgorithmPolicy(SEC_OID_SHA1, NSS_USE_ALG_IN_ANY_SIGNATURE, 0);
db788a
+  if (srv != SECSuccess) {
db788a
+    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.");
db788a
+  }
db788a
+
db788a
   if (nssDbConfig == NSSDBConfig::ReadWrite) {
db788a
     UniquePK11SlotInfo slot(PK11_GetInternalKeySlot());
db788a
     if (!slot) {