rem:  if ( this.openingWith.length == 0 ) { this.hide( "targetRow" ); } else {  this.setValue( "targetLabel", this.getString( "openingTarget" ) );  this.setValue( "target", this.openingWith ); } 
add:  if ( this.MIMEInfo && this.MIMEInfo.preferredApplicationHandler ) { var appName = this.MIMEInfo.preferredApplicationHandler.leafName; if ( appName == null || appName.length == 0 ) { this.hide( "targetRow" ); } else {  this.setValue( "targetLabel", this.getString( "openingTarget" ) );  this.setValue( "target", appName ); } } else { this.hide( "targetRow" ); } 
context:     loadDialog: function() {        // Check whether we're saving versus opening with a helper app.        if ( !this.saving ) {            // Put proper label on source field.            this.setValue( "sourceLabel", this.getString( "openingSource" ) );            // Target is the "opening with" application.  Hide if empty.            if ( this.openingWith.length == 0 ) {                this.hide( "targetRow" );            } else {                // Use the "with:" label.                this.setValue( "targetLabel", this.getString( "openingTarget" ) );                // Name of application.                this.setValue( "target", this.openingWith );            }        } else {            // Target is the destination file.            this.setValue( "target", this.target.path );        }        // Set source field.        this.setValue( "source", this.source.spec );        var now = ( new Date() ).getTime();        // Intialize the elapsed time.        if ( !this.elapsed ) {            this.elapsed = now - this.startTime;        }        // Update elapsed time display.        this.setValue( "timeElapsed", this.formatSeconds( this.elapsed / 1000 ) );        this.setValue( "timeLeft", this.getString( "unknownTime" ) );        // Initialize the "keep open" box.  Hide this if we're opening a helper app.        if ( !this.saving ) {            // Hide this in this case.            this.hide( "keep" );        } else {            // Initialize using last-set value from prefs.            var prefs = Components.classes[ "@mozilla.org/preferences-service;1" ]                            .getService( Components.interfaces.nsIPrefBranch );            if ( prefs ) {                this.dialogElement( "keep" ).checked = prefs.getBoolPref( "browser.download.progressDnldDialog.keepAlive" );            }        }        // Initialize title.        this.setTitle();    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b6ac3de7a2b23a1f82f9262c1b5f41df95d103b5/nsProgressDialog.js/buggy/embedding/components/ui/progressDlg/nsProgressDialog.js