rem: if (certdb.getCertTrust(cert, 2)) { 
add: if (certdb.getCertTrust(cert, nsIX509Cert.CA_CERT, nsIX509CertDB.TRUSTED_EMAIL)) { 
context: function setWindowName(){  var dbkey = self.name;  //  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.getCertByDBKey(dbkey, 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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/02f6597d09a1712e943c1553d5d9a3bd3a6d39cb/editcerts.js/buggy/security/manager/pki/resources/content/editcerts.js