rem:   if (gUseGlobalPrintSettings) { printOptionsService.printSettingsValues = gPrintSettings; 
add: if (webBrowserPrint) { if (webBrowserPrint.doingPrintPreview) { webBrowserPrint.printPreview(gPrintSettings); } 
context: function BrowserPrintSetup(){  try {    var pref = Components.classes["@mozilla.org/preferences-service;1"]                         .getService(Components.interfaces.nsIPrefBranch);    if (pref) {      gUseGlobalPrintSettings = pref.getBoolPref("print.use_global_printsettings", false);    }    var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"]                                           .getService(Components.interfaces.nsIPrintOptions);    // create our own local copy of the print settings    if (gPrintSettings == null) {      gPrintSettings = printOptionsService.CreatePrintSettings();    }    // if we are using the global settings then get them     // before calling page setup    if (gUseGlobalPrintSettings) {      gPrintSettings = printOptionsService.printSettingsValues;    }    goPageSetup(gPrintSettings);  // from utilityOverlay.js    // now set our setting into the global settings    // after the changes were made    if (gUseGlobalPrintSettings) {      printOptionsService.printSettingsValues = gPrintSettings;    }  } catch (e) {    alert("BrowserPrintSetup "+e);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4a4dd9b44f5a1940774d5abddcdeb7e779dbd55a/browser.js/clean/xpfe/browser/resources/content/browser.js