diff --git a/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in b/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in index b3f2d62b0174..37b74356f47a 100644 --- a/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in +++ b/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in @@ -422,13 +422,11 @@ nsUnknownContentTypeDialog.prototype = { // if always-save and is-executable and no-handler // then set up simple ui - var defaultApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; - var noDefaultApp = (!defaultApp || !defaultApp.path); var mimeType = this.mLauncher.MIMEInfo.MIMEType; var shouldntRememberChoice = (mimeType == "application/octet-stream" || mimeType == "application/x-msdownload" || this.mLauncher.targetFile.isExecutable()); - if (shouldntRememberChoice && noDefaultApp) { + if (shouldntRememberChoice && !this.openWithDefaultOK()) { // hide featured choice this.mDialog.document.getElementById("normalBox").collapsed = "true"; // show basic choice