From 7de9e05fca8ec43f1bd635fe307dbb8747011d8a Mon Sep 17 00:00:00 2001 From: Paolo Amadini Date: Tue, 26 Jun 2018 15:27:36 +0100 Subject: [PATCH] Bug 1465458 - Fix launching downloads without a file extension on Windows. r=mak MozReview-Commit-ID: 6VYjHM46gZx --HG-- extra : rebase_source : 56e45713138b32adf7f36d9ae65c264e1976be47 --- toolkit/components/downloads/DownloadIntegration.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/downloads/DownloadIntegration.jsm b/toolkit/components/downloads/DownloadIntegration.jsm index 1649eb71ed3e..ba240f4d1ed2 100644 --- a/toolkit/components/downloads/DownloadIntegration.jsm +++ b/toolkit/components/downloads/DownloadIntegration.jsm @@ -595,7 +595,7 @@ var DownloadIntegration = { } let isWindowsExe = AppConstants.platform == "win" && - fileExtension.toLowerCase() == "exe"; + fileExtension && fileExtension.toLowerCase() == "exe"; // Ask for confirmation if the file is executable, except for .exe on // Windows where the operating system will show the prompt based on the