rem: var dlgs = Components.classes[ "@mozilla.org/appshell/commonDialogs;1" ] .getService( Components.interfaces.nsICommonDialogs ); dlgs.Alert( this.mDialog, this.getString( "badApp.title" ), msg ); 
add: var svc = Components.classes[ "@mozilla.org/embedcomp/prompt-service;1" ] .getService( Components.interfaces.nsIPromptService ); svc.alert( this.mDialog, this.getString( "badApp.title" ), msg ); 
context:     onOK: function() {        // Do what the user asked...        if ( this.dialogElement( "default" ).checked ) {            var nsIMIMEInfo = Components.interfaces.nsIMIMEInfo;            // Get action from MIMEInfo...            if ( this.mLauncher.MIMEInfo.preferredAction == nsIMIMEInfo.saveToDisk ) {                this.mLauncher.saveToDisk( null, false );            } else {                this.mLauncher.launchWithApplication( this.mLauncher.MIMEInfo.preferredApplicationHandler, false );            }        } else {            // Something different for this file...            if ( this.dialogElement( "openUsing" ).checked ) {                // If no app "chosen" then convert input string to file.                if ( !this.chosenApp ) {                    var app = Components.classes[ "@mozilla.org/file/local;1" ].createInstance( Components.interfaces.nsILocalFile );                    app.initWithUnicodePath( this.dialogElement( "appName" ).value );                    if ( !app.exists() ) {                        // Show alert and try again.                        var msg = this.replaceInsert( this.getString( "badApp" ), 1, app.unicodePath );                        var dlgs = Components.classes[ "@mozilla.org/appshell/commonDialogs;1" ]                                      .getService( Components.interfaces.nsICommonDialogs );                        dlgs.Alert( this.mDialog, this.getString( "badApp.title" ), msg );                        // Disable the OK button.                        this.dialogElement( "ok" ).disabled = true;                        // Leave dialog up.                        return false;                    } else {                        // Use that app.                        this.chosenApp = app;                    }                }                this.mLauncher.launchWithApplication( this.chosenApp, false );            } else {                this.mLauncher.saveToDisk( null, false );            }        }        // Unhook dialog from this object.        this.mDialog.dialog = null;        // Close up dialog by returning true.        return true;        //this.mDialog.close();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b6a04b06b1bb6bf003cab45f5b01a876db77aad1/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js