rem: if ( this.dialog && aStatus != Components.results.NS_OK ) { this.dump( "nsProgressDialog::onStatusChange, status=" + this.hex( aStatus ) + "\n" );  var prompter = Components.classes[ "@mozilla.org/embedcomp/prompt-service;1" ] .getService( Components.interfaces.nsIPromptService );  var title = this.getString( this.saving ? "savingAlertTitle" : "openingAlertTitle" ); this.replaceInsert( title, 1, this.fileName ); prompter.alert( this.dialog, title, aMessage );   if ( !this.completed ) { this.onCancel(); 
add: if ( aStatus != Components.results.NS_OK ) { if ( this.loaded ) {  var prompter = Components.classes[ "@mozilla.org/embedcomp/prompt-service;1" ] .getService( Components.interfaces.nsIPromptService );  var title = this.getProperty( this.saving ? "savingAlertTitle" : "openingAlertTitle", [ this.fileName() ], 1 ); prompter.alert( this.dialog, title, aMessage );   if ( !this.completed ) { this.onCancel(); } } else {    this.dialog.setTimeout( function(obj,wp,req,stat,msg){obj.onStatusChange(wp,req,stat,msg)}, 100, this, aWebProgress, aRequest, aStatus, aMessage ); 
context:     onStatusChange: function( aWebProgress, aRequest, aStatus, aMessage ) {        // Check for error condition (only if dialog is still open).        if ( this.dialog && aStatus != Components.results.NS_OK ) {this.dump( "nsProgressDialog::onStatusChange, status=" + this.hex( aStatus ) + "\n" );            // Get prompt service.            var prompter = Components.classes[ "@mozilla.org/embedcomp/prompt-service;1" ]                               .getService( Components.interfaces.nsIPromptService );            // Display error alert (using text supplied by back-end).            var title = this.getString( this.saving ? "savingAlertTitle" : "openingAlertTitle" );            this.replaceInsert( title, 1, this.fileName );            prompter.alert( this.dialog, title, aMessage );            // Close the dialog.            if ( !this.completed ) {                this.onCancel();            }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9f4d9bdfa78386ce9791c619ccc2aa1c42dad59f/nsProgressDialog.js/clean/embedding/components/ui/progressDlg/nsProgressDialog.js