Download Manager does not maintain user-supplied full file name when saving a file with .exe extension




8 years ago
3 years ago


(Reporter: ocyl, Unassigned)



3.0 Branch

Firefox Tracking Flags

(firefox40 affected, firefox41 affected, firefox42 affected, firefox43 affected, firefox-esr31 affected, firefox-esr38 affected)



(1 attachment)



8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101026 Firefox/3.6.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101026 Firefox/3.6.12

When the "Always ask me where to save files" option is set in Firefox -> Tools -> Options -> General, Download Manager would always add an additional .EXE extension to the saved file name if the user changes the case of the extension before/while the file is downloaded, causing the full file name to have two .exe in it.

DECCheckSetup.EXE (see URL) is selected as a test sample due to its small file size (162 KB).

Reproducible: Always

Steps to Reproduce:
1.  In Windows Explorer, go to Tools -> Folder Options -> View, uncheck the "Hide extensions for known file types" option, then click on OK.

2.  In Firefox, go to Tools -> Options -> General, select the "Always ask me where to save files" option, then click on OK. 

3.  Paste "" into Firefox's address field and hit Enter.  Click on the Save File button, change the file name from DECCheckSetup.EXE to DECCheckSetup.exe, then click on the Save button.

4.  In Windows Explorer, go to the location where the file is saved, and verify that the full name of the saved file is DECCheckSetup.exe.EXE.
Actual Results:  
The executable file is saved with an additional .EXE in its name.

Expected Results:  
Download Manager should have saved the file based on the full file name that the user specifies, without adding an .EXE extension at the end.

This appears to happen only to .exe as far as I am aware.  (Maybe there are others.)  When one saves as logo1w.PNG with the same configuration, for instance, the file is properly saved as logo1w.PNG instead of logo1w.PNG.png.

Comment 1

8 years ago
Created attachment 490502 [details]
A screenshot of my Options -> General settings

Comment 2

8 years ago

Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20110608 Firefox/4.0.1 SeaMonkey/2.1

Seamonkey 2.1, Windows 7 x86, too.

SM 2.1 EXE file save duplicate extension concatenation

Comment 3

6 years ago
This continues to be an issue.

Mozilla/5.0 (Windows NT 5.1; rv:10.0.11) Firefox/10.0.11


5 years ago
Duplicate of this bug: 910209


5 years ago
Version: unspecified → Trunk

Comment 5

5 years ago
Why is this not marked as 'Confirmed'?
Comment hidden (spam)
Comment hidden (spam)


3 years ago
Ever confirmed: true


3 years ago
OS: Windows XP → Windows


3 years ago
status-firefox40: --- → affected
status-firefox41: --- → affected
status-firefox42: --- → affected
status-firefox43: --- → affected
status-firefox-esr31: --- → affected
status-firefox-esr38: --- → affected
Keywords: regression
Version: Trunk → 3.0 Branch

Comment 8

3 years ago
Good: 2008-Apr-02
Bad:  2008-Apr-03

Suspected: Bug 299372
Blocks: 299372
You need to log in before you can comment on or make changes to this bug.