rem:  window.sizeToContent(); 
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.findCertByDBKey(dbkey, null);  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var windowReference = document.getElementById('editCaCert');  var message1 = bundle.formatStringFromName("editTrustCA",                                             [ cert.commonName ],                                             1);  setText("certmsg", message1);  var ssl = document.getElementById("trustSSL");  if (certdb.isCertTrusted(cert, nsIX509Cert.CA_CERT,                           nsIX509CertDB.TRUSTED_SSL)) {    ssl.setAttribute("checked", "true");  } else {    ssl.setAttribute("checked", "false");  }  var email = document.getElementById("trustEmail");  if (certdb.isCertTrusted(cert, nsIX509Cert.CA_CERT,                           nsIX509CertDB.TRUSTED_EMAIL)) {    email.setAttribute("checked", "true");  } else {    email.setAttribute("checked", "false");  }  var objsign = document.getElementById("trustObjSign");  if (certdb.isCertTrusted(cert, nsIX509Cert.CA_CERT,                            nsIX509CertDB.TRUSTED_OBJSIGN)) {    objsign.setAttribute("checked", "true");  } else {    objsign.setAttribute("checked", "false");  }    window.sizeToContent();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4969dcc2f87c8d94bacf3b25adf0c24867c3d1f8/editcerts.js/clean/security/manager/pki/resources/content/editcerts.js