rem: printSettings = PSSVC.globalPrintSettings; this.setPrinterDefaultsForSelectedPrinter(PSSVC, printSettings); 
add: if (gPrintSettingsAreGlobal) { printSettings = PSSVC.globalPrintSettings; this.setPrinterDefaultsForSelectedPrinter(PSSVC, printSettings); } else { printSettings = PSSVC.newPrintSettings; } 
context:   getPrintSettings: function ()  {    var printSettings;    try {      var PSSVC = Components.classes["@mozilla.org/gfx/printsettings-service;1"]                            .getService(Components.interfaces.nsIPrintSettingsService);      printSettings = PSSVC.globalPrintSettings;      this.setPrinterDefaultsForSelectedPrinter(PSSVC, printSettings);    } catch (e) {      dump("getPrintSettings: "+e+"\n");    }    return printSettings;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/03533ce4c7e42811e16fb6838908eb7f71149345/printUtils.js/buggy/toolkit/components/printing/content/printUtils.js