rem: printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings); if (printSettings) { printSettings.isCancelled = false; 
add: if (window.arguments[3]) { printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings); if (printSettings) { printSettings.isCancelled = false; } 
context: function InitPrintEngineWindow(){  /* Tell the nsIPrintEngine object what window is rendering the email */  printEngine.setWindow(window);  /* hide the printEngine window.  see bug #73995 */  printEngine.showWindow(false);  /* See if we got arguments.   * Window was opened via window.openDialog.  Copy argument   * and perform compose initialization    */  if ( window.arguments && window.arguments[0] != null ) {    var numSelected = window.arguments[0];    var uriArray = window.arguments[1];    var statusFeedback = window.arguments[2];    printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings);    if (printSettings) {      printSettings.isCancelled = false;    }    printEngine.setStatusFeedback(statusFeedback);    if (numSelected > 0) {      printEngine.setPrintURICount(numSelected);      for (var i = 0; i < numSelected; i++) {        printEngine.addPrintURI(uriArray[i]);              //dump(uriArray[i] + "\n");      }	        }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6428dcf6e45b15e4c6a612939e0c74209a0b5ca5/msgPrintEngine.js/clean/mailnews/base/resources/content/msgPrintEngine.js