rem: FinishPrintPreview(); 
add:   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; }    if (!notifyOnOpen.value.valueOf() || gWebProgress.value == null) { FinishPrintPreview(); } } 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  }  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) {    FinishPrintPreview();  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/883125f2f920f29ebbf063ccdd40076f97d6f515/calPrintEngine.js/buggy/calendar/resources/content/calPrintEngine.js