[TychoAM] Fix gCertBlocklistService.addRevokedCert is not a function

Mozilla renamed it to revokeCertByIssuerAndSerial
This commit is contained in:
NTD 2018-04-28 18:19:42 -04:00 committed by Roy Tam
commit 9feb54bfda

View file

@ -910,7 +910,7 @@ Blocklist.prototype = {
let issuer = blocklistElement.getAttribute("issuerName");
for (let snElement of blocklistElement.children) {
try {
gCertBlocklistService.addRevokedCert(issuer, snElement.textContent);
gCertBlocklistService.revokeCertByIssuerAndSerial(issuer, snElement.textContent);
} catch (e) {
// we want to keep trying other elements since missing all items
// is worse than missing one