Bug 906971 - Cleanup editcerts.js. r=keeler

This commit is contained in:
Cykesiopka 2013-08-20 16:43:39 -04:00
parent 738a226297
commit 46f8a6a5bc

View File

@ -23,13 +23,9 @@ function setWindowName()
// Get the cert from the cert database
certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB);
//var pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock);
//var isupport = pkiParams.getISupportAtIndex(1);
//cert = isupport.QueryInterface(nsIX509Cert);
cert = certdb.findCertByDBKey(dbkey, null);
var bundle = document.getElementById("pippki_bundle");
var windowReference = document.getElementById('editCaCert');
var message1 = bundle.getFormattedString("editTrustCA", [cert.commonName]);
setText("certmsg", message1);
@ -82,7 +78,6 @@ function doLoadForEmailCert()
cert = certdb.findCertByDBKey(dbkey, null);
var bundle = document.getElementById("pippki_bundle");
var windowReference = document.getElementById('editEmailCert');
var message1 = bundle.getFormattedString("editTrustEmail", [cert.commonName]);
setText("certmsg", message1);
@ -103,13 +98,6 @@ function doLoadForEmailCert()
{
setText("explanations", bundle.getString("issuerNotTrusted"));
}
/*
if(cacert == null)
{
var editButton = document.getElementById('editca-button');
editButton.setAttribute("disabled","true");
}
*/
var sslTrust = document.getElementById("sslTrustGroup");
sslTrust.value = certdb.isCertTrusted(cert, nsIX509Cert.EMAIL_CERT,
nsIX509CertDB.TRUSTED_EMAIL);
@ -143,7 +131,6 @@ function editCaTrust()
function getCaCertForEntityCert(cert)
{
var i=1;
var nextCertInChain;
nextCertInChain = cert;
var lastSubjectName="";
@ -165,4 +152,3 @@ function getCaCertForEntityCert(cert)
return nextCertInChain;
}