rem:  var ps = window.arguments[0].QueryInterface(gPrintSetInterface); if (ps != null) { gPrintSettings = ps; paramBlock = window.arguments[1].QueryInterface(Components.interfaces.nsIDialogParamBlock); } 
add: gPrintSettings = window.arguments[0].QueryInterface(gPrintSetInterface); paramBlock = window.arguments[1].QueryInterface(Components.interfaces.nsIDialogParamBlock); 
context: function onLoad(){  // Init dialog.  initDialog();  // window.arguments[0]: container for return value (1 = ok, 0 = cancel)  var ps = window.arguments[0].QueryInterface(gPrintSetInterface);  if (ps != null) {    gPrintSettings = ps;    paramBlock = window.arguments[1].QueryInterface(Components.interfaces.nsIDialogParamBlock);  }  if (doDebug) {    if (ps == null) alert("PrintSettings is null!");    if (paramBlock == null) alert("nsIDialogParam is null!");  }  // default return value is "cancel"  paramBlock.SetInt(0, 0);  loadDialog();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/15a673155fff62104de022c479b52362163dc8d3/printjoboptions.js/buggy/xpfe/global/resources/content/unix/printjoboptions.js