rem: param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if( !param ) { return; 
add:    var ps = window.arguments[0].QueryInterface(gPrintSetInterface); if (ps != null) { gPrintSettings = ps; paramBlock = window.arguments[1].QueryInterface(Components.interfaces.nsIDialogParamBlock); } else { var suppsArray = window.arguments[0].QueryInterface(Components.interfaces.nsISupportsArray); if (suppsArray) { var supps = suppsArray.ElementAt(0); gPrintSettings = supps.QueryInterface(gPrintSetInterface); if(!gPrintSettings) { return; } supps = suppsArray.ElementAt(1); paramBlock = supps.QueryInterface(Components.interfaces.nsIDialogParamBlock); if(!paramBlock) { return; } } else { return; } 
context: function onLoad(){  // Init dialog.  initDialog();  param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);  if( !param ) {    return;  }  param.SetInt(0, 1 );  loadDialog();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js