bug 1076329 - fix NSSDialogService to properly inspect checkbox state in confirmDownloadCACert r=mfinkle

This commit is contained in:
David Keeler 2015-02-09 15:09:06 -08:00
parent 2ef4382d43
commit 7b637b95c2

View File

@ -85,9 +85,9 @@ NSSDialogs.prototype = {
}
aTrust.value = Ci.nsIX509CertDB.UNTRUSTED;
if (response.trustSSL == "true") aTrust.value |= Ci.nsIX509CertDB.TRUSTED_SSL;
if (response.trustEmail == "true") aTrust.value |= Ci.nsIX509CertDB.TRUSTED_EMAIL;
if (response.trustSign == "true") aTrust.value |= Ci.nsIX509CertDB.TRUSTED_OBJSIGN;
if (response.trustSSL) aTrust.value |= Ci.nsIX509CertDB.TRUSTED_SSL;
if (response.trustEmail) aTrust.value |= Ci.nsIX509CertDB.TRUSTED_EMAIL;
if (response.trustSign) aTrust.value |= Ci.nsIX509CertDB.TRUSTED_OBJSIGN;
return true;
}
},