rem:   cert = certdb.getCertByDBKey(certkey, null); 
add:    cert = certdb.getCertByDBKey(dbkey, null); 
context: function setWindowName(){  //myName = self.name;  certkey = self.name;  //  Get the cert from the cert database  certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB);  //var cert = certdb.getCertByNickname(token, myName);  //cert = certdb.getCertByNickname(null, myName);  cert = certdb.getCertByDBKey(certkey, null);  var windowReference = document.getElementById('editCert');  windowReference.setAttribute("title", cert.commonName);  var certname = document.getElementById("certname");  certname.setAttribute("value", cert.commonName);  var ssl = document.getElementById("trustSSL");  if (certdb.getCertTrust(cert, 1)) {    ssl.setAttribute("checked", "true");  } else {    ssl.setAttribute("checked", "false");  }  var email = document.getElementById("trustEmail");  if (certdb.getCertTrust(cert, 2)) {    email.setAttribute("checked", "true");  } else {    email.setAttribute("checked", "false");  }  var objsign = document.getElementById("trustObjSign");  if (certdb.getCertTrust(cert, 4)) {    objsign.setAttribute("checked", "true");  } else {    objsign.setAttribute("checked", "false");  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2b5e9f7370e8ae82d6c4f3cd0c5f5965e4f9db84/editcerts.js/clean/security/manager/pki/resources/content/editcerts.js