rem: setTimeout("processEndOfDownload()", 300); 
add: processEndOfDownload(); 
context:     onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus)    {      if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)      {        // we are done downloading...        completed = true;        // Indicate completion in status area.        var msg = getString( "completeMsg" );        msg = replaceInsert( msg, 1, formatSeconds( elapsed/1000 ) );        dialog.status.setAttribute("value", msg);        // Put progress meter at 100%.        dialog.progress.setAttribute( "value", 100 );        dialog.progress.setAttribute( "mode", "normal" );        var percentMsg = getString( "percentMsg" );        percentMsg = replaceInsert( percentMsg, 1, 100 );        dialog.progressText.setAttribute("label", percentMsg);        const nsIWebBrowserPersist = Components.interfaces.nsIWebBrowserPersist;        if (helperAppLoader || webBrowserPersist &&            webBrowserPersist.currentState == nsIWebBrowserPersist.PERSIST_STATE_FINISHED)          setTimeout("processEndOfDownload()", 300);      }    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ccfc6fbfd6cd450b8507e9a1a7ea252ea867cfa2/helperAppDldProgress.js/buggy/xpfe/components/ucth/resources/helperAppDldProgress.js