rem: gPrintSettings = printOptionsService.CreatePrintSettings(); 
add: gPrintSettings = printSettingsService.CreatePrintSettings(); 
context: function GetPrintSettings(){  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);      }      // I would rather be using nsIWebBrowserPrint API      // but I really don't have a document at this point      var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"]                                           .getService(Components.interfaces.nsIPrintOptions);      if (useGlobalPrintSettings) {        gPrintSettings = printOptionsService.globalPrintSettings;      } else {        gPrintSettings = printOptionsService.CreatePrintSettings();      }    }  } catch (e) {    dump("GetPrintSettings "+e);  }  return gPrintSettings;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ccef729e0a465833a401378a8ce5625b6079a404/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js