rem: gWebBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);   gWebBrowserPrint.initPrintSettingsFromPrinter(gPrintSettings.printerName, gPrintSettings);  var flags = gPrintSetInterface.kInitSavePaperSizeType | gPrintSetInterface.kInitSavePaperSizeUnit | gPrintSetInterface.kInitSavePaperWidth | gPrintSetInterface.kInitSavePaperHeight | gPrintSetInterface.kInitSavePrintCommand;   gWebBrowserPrint.initPrintSettingsFromPrefs(gPrintSettings, true, flags);  
add: var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); webBrowserPrint.initPrintSettingsFromPrinter(gPrintSettings.printerName, gPrintSettings); 
context: function setPrinterDefaultsForSelectedPrinter(){  /* FixMe: We should save the old printer's values here... */  gPrintSettings.printerName  = dialog.printerList.value;  var ifreq = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor);  gWebBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);   // First get any defaults from the printer   gWebBrowserPrint.initPrintSettingsFromPrinter(gPrintSettings.printerName, gPrintSettings);  var flags = gPrintSetInterface.kInitSavePaperSizeType | gPrintSetInterface.kInitSavePaperSizeUnit |              gPrintSetInterface.kInitSavePaperWidth | gPrintSetInterface.kInitSavePaperHeight |              gPrintSetInterface.kInitSavePrintCommand;  // now augment them with any values from last time  gWebBrowserPrint.initPrintSettingsFromPrefs(gPrintSettings, true, flags);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/347738ddff141e684aa1160901497cb7fb15278e/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js