Bug 489994 - Downloads list should honor always remember helper application, r=mconnor

This commit is contained in:
timeless@mozdev.org 2009-10-26 18:39:23 -07:00
parent 1515ba9ac8
commit 1986c2c297

View File

@ -323,6 +323,15 @@ function openDownload(aDownload)
}
}
try {
try {
let download = gDownloadManager.getDownload(aDownload.getAttribute("dlid"));
let mimeInfo = download.MIMEInfo;
if (mimeInfo.preferredAction == mimeInfo.useHelperApp) {
mimeInfo.launchWithFile(f);
return;
}
} catch (ex) {
}
f.launch();
} catch (ex) {
// if launch fails, try sending it through the system's external