rem: } catch (e) {} 
add: } catch (e) { FinishPrintPreview(); } 
context: function BrowserPrintPreview(){  var ifreq;  var webBrowserPrint;    try {    ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);    webBrowserPrint = ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);         gPrintSettings = GetPrintSettings();  } catch (e) {    // Pressing cancel is expressed as an NS_ERROR_ABORT 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  }  // Here we get the PrintingPromptService tso we can display the PP Progress from script  // For the browser implemented via XUL with the PP toolbar we cannot let it be  // automatically opened from the print engine because the XUL scrollbars in the PP window  // will layout before the content window and a crash will occur.  //  // Doing it all from script, means it lays out before hand and we can let printing do it's own thing  gWebProgress = new Object();  var printPreviewParams    = new Object();  var notifyOnOpen          = new Object();  var printingPromptService = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"]                                  .getService(Components.interfaces.nsIPrintingPromptService);  if (printingPromptService) {    // just in case we are already printing,     // an error code could be returned if the Prgress Dialog is already displayed    try {      printingPromptService.showProgress(this, webBrowserPrint, gPrintSettings, gPrintPreviewObs, false, gWebProgress,                                          printPreviewParams, notifyOnOpen);      if (printPreviewParams.value) {        var webNav = getWebNavigation();        printPreviewParams.value.docTitle = webNav.document.title;        printPreviewParams.value.docURL   = webNav.currentURI.spec;      }      // this tells us whether we should continue on with PP or       // wait for the callback via the observer      if (!notifyOnOpen.value.valueOf() || gWebProgress.value == null) {        FinishPrintPreview();      }    } catch (e) {}  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6542edd5278f371daa789b7513a735c89c6ed29b/browser.js/buggy/suite/browser/browser.js