add: if (gPrintSettingsAreGlobal && gSavePrintSettings) { var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"] .getService(Components.interfaces.nsIPrintSettingsService); psService.savePrintSettingsToPrefs(gPrintSettings, true, gPrintSettings.kInitSaveAll); } 
context: function NSPrint(){  try {    var webBrowserPrint = content          .QueryInterface(Components.interfaces.nsIInterfaceRequestor)          .getInterface(Components.interfaces.nsIWebBrowserPrint);    if (webBrowserPrint) {      gPrintSettings = GetPrintSettings();      webBrowserPrint.print(gPrintSettings, null);    }  } 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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dbd29567888c560ba89c437c7867e2df79a3cc6f/printing.js/clean/xpfe/communicator/resources/content/printing.js