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

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