rem: onStateChange: function( aWebProgress, aRequest, aStateFlags, aStatus ) { 
add: onStateChange: function( aWebProgress, aRequest, aStateFlags, aStatus, aDownload ) { 
context:     onStateChange: function( aWebProgress, aRequest, aStateFlags, aStatus ) {        if ( aStateFlags & nsIWebProgressListener.STATE_STOP ) {            // if we are downloading, then just wait for the first STATE_STOP            if ( this.targetFile != null ) {                // we are done transferring...                this.completed = true;                return;            }            // otherwise, wait for STATE_STOP with aRequest corresponding to            // our target.  XXX redirects might screw up this logic.            try {                var chan = aRequest.QueryInterface(nsIChannel);                if (chan.URI.equals(this.target)) {                    // we are done transferring...                    this.completed = true;                }            }            catch (e) {            }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0a4b6eba0e8347d3326d013fb8a4dd1e18c24a66/nsProgressDialog.js/clean/embedding/components/ui/progressDlg/nsProgressDialog.js