rem: if (mimeType == "application/octet-stream" || mimeType == "application/x-msdownload") { 
add: if ((mimeType == "application/octet-stream" || mimeType == "application/x-msdownload") && !openWithDefaultOK) { 
context:     initAppAndSaveToDiskValues: function() {      var modeGroup = this.dialogElement("mode");      // We don't let users open .exe files or random binary data directly       // from the browser at the moment because of security concerns.       var mimeType = this.mLauncher.MIMEInfo.MIMEType;      if (mimeType == "application/octet-stream" ||          mimeType == "application/x-msdownload") {        this.dialogElement("open").disabled = true;        var openHandler = this.dialogElement("openHandler");        openHandler.disabled = true;        openHandler.label = "";        modeGroup.selectedItem = this.dialogElement("save");        return;      }          // Fill in helper app info, if there is any.      this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler;      // Initialize "default application" field.      this.initDefaultApp();      var otherHandler = this.dialogElement("otherHandler");                    // Fill application name textbox.      if (this.chosenApp && this.chosenApp.path) {        otherHandler.setAttribute("path", this.getPath(this.chosenApp));        otherHandler.label = this.chosenApp.leafName;        otherHandler.hidden = false;      }      var useDefault = this.dialogElement("useSystemDefault");      var openHandler = this.dialogElement("openHandler");      openHandler.selectedIndex = 0;      if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useSystemDefault) {        // Open (using system default).        modeGroup.selectedItem = this.dialogElement("open");      } else if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useHelperApp) {        // Open with given helper app.        modeGroup.selectedItem = this.dialogElement("open");        openHandler.selectedIndex = 1;      } else {        // Save to disk.        modeGroup.selectedItem = this.dialogElement("save");      }            // If we don't have a "default app" then disable that choice.      if (!this.openWithDefaultOK()) {        var useDefault = this.dialogElement("defaultHandler");        var isSelected = useDefault.selected;                // Disable that choice.        useDefault.hidden = true;        // If that's the default, then switch to "save to disk."        if (isSelected) {          openHandler.selectedIndex = 1;          modeGroup.selectedItem = this.dialogElement("save");        }      }            // otherHandler is always disabled on Mac      if (this.mIsMac)         otherHandler.hidden = true;      otherHandler.nextSibling.hidden = otherHandler.nextSibling.nextSibling.hidden = this.isMac;      this.updateOKButton();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/632c441ae800532f62d7f3a69131300190c213ef/nsHelperAppDlg.js/buggy/toolkit/mozapps/downloads/content/nsHelperAppDlg.js