rem:  var xulWindow = document.getElementById("serverCertExpired");  var wdth = window.innerWidth; window.sizeToContent(); xulWindow.setAttribute("width",window.innerWidth + 30);  var hght = window.innerHeight; window.sizeToContent(); xulWindow.setAttribute("height",window.innerHeight + 40);   
context: function onLoad(){  pkiParams    = window.arguments[0].QueryInterface(nsIPKIParamBlock);  dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock);  var title = dialogParams.GetString(2);  window.title = title;  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var message1 = dialogParams.GetString(1);    var currDate = new Date();   var message2 = bundle.formatStringFromName("serverCertExpiredMsg2",                                              [ currDate.toLocaleString() ],                                              1);  setText("message1", message1);  setText("message2", message2);  //Set the focus so key press events work.  document.getElementById('ok-button').focus();  var xulWindow = document.getElementById("serverCertExpired");  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/180377c25d2001282982a33e8108352b85493d17/serverCertExpired.js/buggy/security/manager/pki/resources/content/serverCertExpired.js