rem: params = window.arguments[0].QueryInterface(nsIDialogParamBlock); caName = params.GetString(1); 
add: pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); params = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert);  caName = cert.commonName; 
context: function onLoad(){  params = window.arguments[0].QueryInterface(nsIDialogParamBlock);  caName = params.GetString(1);   var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  if (!caName.length)    caName = bundle.GetStringFromName("unnamedCA");  var message2 = bundle.formatStringFromName("newCAMessage1",                                             [ caName ],                                              1);  setText("message2", message2);  var xulWindow = document.getElementById("download_cert");  var wdth = window.innerWidth; // THIS IS NEEDED,  window.sizeToContent();  xulWindow.setAttribute("width",window.innerWidth + 30);  var hght = window.innerHeight; // THIS IS NEEDED,  window.sizeToContent();  xulWindow.setAttribute("height",window.innerHeight + 40);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7dff0d6306673b5a5b0bfea8f86851bdc2c20575/downloadcert.js/buggy/security/manager/pki/resources/content/downloadcert.js