rem:  this.chosenApp = result; 
context:     helperAppChoice: function() {        var result = this.chosenApp;        var typed  = this.dialogElement( "appPath" ).value;        // First, see if one was chosen via the Choose... button.        if ( result ) {            // Verify that the user didn't type in something different later.            if ( typed != result.path ) {                // Use what was typed in.                try {                    result.QueryInterface( Components.interfaces.nsILocalFile ).initWithPath( typed );                } catch( e ) {                    // Invalid path was typed.                    result = null;                }            }        } else {            // The user didn't use the Choose... button, try using what they typed in.            result = Components.classes[ "@mozilla.org/file/local;1" ]                       .createInstance( Components.interfaces.nsILocalFile );            try {                result.initWithPath( typed );            } catch( e ) {                result = null;            }        }        // Remember what was chosen.        this.chosenApp = result;        return result;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d2cdf8aeced20bebbb5495a5e017db0c9cc756e9/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js