add:  var xulWindow = document.getElementById("editCert"); var wdth = window.innerWidth; window.sizeToContent(); xulWindow.setAttribute("width",window.innerWidth + 30); var hght = window.innerHeight; window.sizeToContent(); xulWindow.setAttribute("height",window.innerHeight + 70);   
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 bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var windowReference = document.getElementById('editCert');  windowReference.setAttribute("title",                              bundle.GetStringFromName("editTrustWindowTitle"));   var message1 = bundle.formatStringFromName("editTrustCA",                                             [ cert.commonName ],                                             1);  setText("certmsg", message1);  var ssl = document.getElementById("trustSSL");  if (certdb.getCertTrust(cert, nsIX509Cert.CA_CERT,                           nsIX509CertDB.TRUSTED_SSL)) {    ssl.setAttribute("checked", "true");  } else {    ssl.setAttribute("checked", "false");  }  var email = document.getElementById("trustEmail");  if (certdb.getCertTrust(cert, nsIX509Cert.CA_CERT,                           nsIX509CertDB.TRUSTED_EMAIL)) {    email.setAttribute("checked", "true");  } else {    email.setAttribute("checked", "false");  }  var objsign = document.getElementById("trustObjSign");  if (certdb.getCertTrust(cert, nsIX509Cert.CA_CERT,                            nsIX509CertDB.TRUSTED_OBJSIGN)) {    objsign.setAttribute("checked", "true");  } else {    objsign.setAttribute("checked", "false");  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f5a43e4f78ded7f958ed351726ca2de7699a61e7/editcerts.js/buggy/security/manager/pki/resources/content/editcerts.js