rem: gPrintSettings = psService.globalPrintSettings; if (gSavePrintSettings) { psService.initPrintSettingsFromPrefs(gPrintSettings, false, gPrintSettings.kInitSaveNativeData); } 
add: gPrintSettings = printService.globalPrintSettings; setPrinterDefaultsForSelectedPrinter(printService); 
context: function GetPrintSettings(){  var prevPS = gPrintSettings;  try {    if (gPrintSettings == null) {      gPrintSettingsAreGlobal = gPrefService.getBoolPref("print.use_global_printsettings", false);      gSavePrintSettings = gPrefService.getBoolPref("print.save_print_settings", false);      var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"]                                        .getService(Components.interfaces.nsIPrintSettingsService);      if (gPrintSettingsAreGlobal) {        gPrintSettings = psService.globalPrintSettings;                if (gSavePrintSettings) {          psService.initPrintSettingsFromPrefs(gPrintSettings, false, gPrintSettings.kInitSaveNativeData);        }      } else {        gPrintSettings = psService.newPrintSettings;      }    }  } catch (e) {    dump("GetPrintSettings "+e);  }  return gPrintSettings;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e4b1f4e2cecaa95aa80f003fe4c204d30968801b/browser.js/clean/browser/base/content/browser.js