rem: "Certificate Detail: \""+cert.windowTitle+'"'); 
add: certDetails+'"'+cert.windowTitle+'"'); 
context: function setWindowName(){  //  Get the cert from the cert database  var certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB);  var windowReference=document.getElementById('certDetails');  myName = self.name;  var cert;  if (myName != "_blank") {    windowReference.setAttribute("title","Certificate Detail: \""+myName+"\"");    //  Get the token    //  XXX ignore this for now.  NSS will find the cert on a token    //      by "tokenname:certname", which is what we have.    //var tokenName = "";    //var pk11db = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB);    //var token = pk11db.findTokenByName(tokenName);    //var cert = certdb.getCertByNickname(token, myName);    cert = certdb.getCertByNickname(null, myName);  } else {    var pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock);    var isupport = pkiParams.getISupportAtIndex(1);    cert = isupport.QueryInterface(nsIX509Cert);    windowReference.setAttribute("title",                                  "Certificate Detail: \""+cert.windowTitle+'"');  }  //  //  Set the cert attributes for viewing  //  //  The chain of trust  var chainEnum = cert.getChain();  chainEnum.first();  var c = 0;  var chain = [];  try {  while (true) {    var node = chainEnum.currentItem();    node = node.QueryInterface(nsIX509Cert);    chain[c++] = node.commonName;    chainEnum.next();  }  } catch (e) {}  AddCertChain("chain", chain.reverse(),"");  AddCertChain("chainDump", chain,"dump_");  DisplayGeneralDataFromCert(cert);  BuildPrettyPrint(cert);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d41928522e534dd9a0996236faf1a714b84070a7/viewCertDetails.js/clean/security/manager/pki/resources/content/viewCertDetails.js