rem:    cert = certdb.getCertByDBKey(dbkey, null); 
add:  var typeFlag = dialogParams.GetString(1); var numberOfCerts = dialogParams.GetInt(2); var dbkey; var isupport for(var x=0; x<numberOfCerts;x++) { isupport = pkiParams.getISupportAtIndex(x+1); certs[x]    = isupport.QueryInterface(nsIX509Cert); }  var bundle = srGetStrBundle("chrome: var title; var confirm; var impact;  if(typeFlag == bundle.GetStringFromName("deleteUserCertFlag")) { title = bundle.GetStringFromName("deleteUserCertTitle"); confirm = bundle.GetStringFromName("deleteUserCertConfirm"); impact = bundle.GetStringFromName("deleteUserCertImpact"); helpUrl = "chrome: } else if(typeFlag == bundle.GetStringFromName("deleteSslCertFlag")) { title = bundle.GetStringFromName("deleteSslCertTitle"); confirm = bundle.GetStringFromName("deleteSslCertConfirm"); impact = bundle.GetStringFromName("deleteSslCertImpact"); helpUrl = "chrome: } else if(typeFlag == bundle.GetStringFromName("deleteCaCertFlag")) { title = bundle.GetStringFromName("deleteCaCertTitle"); confirm = bundle.GetStringFromName("deleteCaCertConfirm"); impact = bundle.GetStringFromName("deleteCaCertImpact"); helpUrl = "chrome: } else { return; } var windowReference = document.getElementById('deleteCert'); var confirReference = document.getElementById('confirm'); var impactReference = document.getElementById('impact'); windowReference.setAttribute("title", title);  setText("confirm",confirm); 
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('deleteCert');  windowReference.setAttribute("title", cert.commonName);  var certname = document.getElementById("certname");  certname.setAttribute("value", cert.commonName);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3d147aa3f22928e0b8284fddcdee67e8b026b439/deletecert.js/clean/security/manager/pki/resources/content/deletecert.js