rem: try { var webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(); webBrowserPrint.print(gPrintSettings, null); if (gPrintSettingsAreGlobal && gSavePrintSettings) { var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"] .getService(Components.interfaces.nsIPrintSettingsService); psService.savePrintSettingsToPrefs(gPrintSettings, true, gPrintSettings.kInitSaveAll); psService.savePrintSettingsToPrefs(gPrintSettings, false, gPrintSettings.kInitSavePrinterName); } } } catch (e) {     } 
add: PrintUtils.print(); 
context: function NSPrint(){  try {    var webBrowserPrint = content          .QueryInterface(Components.interfaces.nsIInterfaceRequestor)          .getInterface(Components.interfaces.nsIWebBrowserPrint);    if (webBrowserPrint) {      gPrintSettings = GetPrintSettings();      webBrowserPrint.print(gPrintSettings, null);      if (gPrintSettingsAreGlobal && gSavePrintSettings) {        var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"]                                          .getService(Components.interfaces.nsIPrintSettingsService);        psService.savePrintSettingsToPrefs(gPrintSettings, true,                                           gPrintSettings.kInitSaveAll);        psService.savePrintSettingsToPrefs(gPrintSettings, false,                                           gPrintSettings.kInitSavePrinterName);      }    }  } catch (e) {    // Pressing cancel is expressed as an NS_ERROR_ABORT return value,    // causing an exception to be thrown which we catch here.    // Unfortunately this will also consume helpful failures, so add a    // dump(e); // if you need to debug  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c94e8974ee1234ea0cafe0ff4be174099796cacb/printing.js/buggy/xpfe/communicator/resources/content/printing.js