rem: _content.print(); 
add: var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if (pref) { gUseGlobalPrintSettings = pref.getBoolPref("print.use_global_printsettings"); } var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"] .getService(Components.interfaces.nsIPrintOptions); if (gPrintSettings == null) { gPrintSettings = printOptionsService.CreatePrintSettings(); }    if (gUseGlobalPrintSettings) { gPrintSettings = printOptionsService.printSettingsValues; }   _content.print(gPrintSettings, false);    if (gUseGlobalPrintSettings) { printOptionsService.printSettingsValues = gPrintSettings; }  
context: function BrowserPrint(){  // using _content.print() until printing becomes scriptable on docShell  try {    _content.print();  } catch (e) {    // Pressing cancel is expressed as an NS_ERROR_FAILURE return value,    // causing an exception to be thrown which we catch here.    // Unfortunately this will also consume helpful failures, so add a    // dump(e); // if you need to debug  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/browser.js/buggy/xpfe/browser/resources/content/browser.js