rem: _content.printPreview(gPrintSettings);  
add: var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(webBrowserPrint); webBrowserPrint.printPreview(gPrintSettings); } 
context: function BrowserPrintPreview(){  var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;1"]                                         .getService(Components.interfaces.nsIPrintOptions);  if (gPrintSettings == null) {    gPrintSettings = printOptionsService.CreatePrintSettings();  }  // using _content.printPreview() until printing becomes scriptable on docShell  try {    _content.printPreview(gPrintSettings);  } 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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ab527517874688949627a848711d460a05ae6166/browser.js/buggy/xpfe/browser/resources/content/browser.js