rem:   if (prevPS == null) { var defPrinterName = webBrowserPrint.defaultPrinterName; if (defPrinterName != "") { if (gPrintSettings.printerName == null || gPrintSettings.printerName == "") { gPrintSettings.printerName = defPrinterName; } webBrowserPrint.initPrintSettingsFromPrinter(gPrintSettings.printerName, gPrintSettings); } }  
context: function GetPrintSettings(webBrowserPrint){  var prevPS = gPrintSettings;  try {    if (gPrintSettings == null) {      var useGlobalPrintSettings = true;      var pref = Components.classes["@mozilla.org/preferences-service;1"]                           .getService(Components.interfaces.nsIPrefBranch);      if (pref) {        useGlobalPrintSettings = pref.getBoolPref("print.use_global_printsettings", false);      }      if (useGlobalPrintSettings) {        gPrintSettings = webBrowserPrint.newPrintSettings;      } else {        gPrintSettings = webBrowserPrint.globalPrintSettings;      }      // only do this the first time      if (prevPS == null) {        var defPrinterName = webBrowserPrint.defaultPrinterName;        if (defPrinterName != "") {          if (gPrintSettings.printerName == null || gPrintSettings.printerName == "") {            gPrintSettings.printerName = defPrinterName;          }          webBrowserPrint.initPrintSettingsFromPrinter(gPrintSettings.printerName, gPrintSettings);        }      }    }  } catch (e) {    alert("GetPrintSettings "+e);  }  return gPrintSettings;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/785aacab833e19b0400bf8d7ac66bedebd3cca4c/browser.js/buggy/xpfe/browser/resources/content/browser.js