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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0d1ee9c47d9d0e99aad3246a85258439a4308ecc/printUtils.js/buggy/toolkit/components/printing/content/printUtils.js