Bug 1713053 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Ed Avis from comment #0)
> Now suppose the directory contains a file of type that cannot be displayed directly by Firefox, but is associated with another application -- such as a .csv file.  Click on that .csv file in the directory listing.
> 
> 
> Actual results:
> 
> It "downloads" a copy of the file to your Downloads folder, as if you had downloaded it from a website.  This even happens if it was the Downloads folder itself you were browsing!

Unfortunately I can't reproduce this with either csv files or zip files - if the file type is set to ask you what to do (the default), we ask what to do. If I select "open with [application]" in the dialog when prompted, this also opens the file in-place, instead of initiating another download. If it is set to open automatically with an application (you can configure this in the Firefox settings), then (for me) that happens without initiating another download.

The third case here would be if the file type in question is set to always download (in the Firefox settings - you can search for 'csv' in the search box). There we had a bug we recently fixed - bug 1555637 (I know the summary is only about PDF files, but the fix applies to all filetypes - PDF is a bit of a special snowflake because Firefox can handle it internally unless pdf.js is disabled). This will now ask you what to do. You can see the new behaviour in nightly, which you can download from https://nightly.mozilla.org/ . It will be released in regular Firefox in the beginning of July. In the meantime you could also work around locally by changing the setting for "csv" files to "always ask".

So, do you have the file types for which you see this behaviour set to "save to disk" in the preferences?

**If not**, clearly there is some edgecase we're missing if this isn't what happens for you, but from the details in your report I'm not sure what it is. So I'm going to ask some questions to try to narrow down when this happens. Can you check with a [new empty Firefox profile](https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles)? Does this happen with `.zip` files as well as `.csv` files? And how are those file types configured to be handled in Firefox's settings in the profile with which you can reproduce the issue?
(In reply to Ed Avis from comment #0)
> Now suppose the directory contains a file of type that cannot be displayed directly by Firefox, but is associated with another application -- such as a .csv file.  Click on that .csv file in the directory listing.
> 
> 
> Actual results:
> 
> It "downloads" a copy of the file to your Downloads folder, as if you had downloaded it from a website.  This even happens if it was the Downloads folder itself you were browsing!

Unfortunately I can't reproduce this with either csv files or zip files - if the file type is set to ask you what to do (the default), we ask what to do. If I select "open with [application]" in the dialog when prompted, this opens the file in-place, instead of initiating another download. If it is set to open automatically with an application (you can configure this in the Firefox settings), then (for me) that happens without initiating another download.

The third case here would be if the file type in question is set to always download (in the Firefox settings - you can search for 'csv' in the search box). There we had a bug we recently fixed - bug 1555637 (I know the summary is only about PDF files, but the fix applies to all filetypes - PDF is a bit of a special snowflake because Firefox can handle it internally unless pdf.js is disabled). This will now ask you what to do. You can see the new behaviour in nightly, which you can download from https://nightly.mozilla.org/ . It will be released in regular Firefox in the beginning of July. In the meantime you could also work around locally by changing the setting for "csv" files to "always ask".

So, do you have the file types for which you see this behaviour set to "save to disk" in the preferences?

**If not**, clearly there is some edgecase we're missing if this isn't what happens for you, but from the details in your report I'm not sure what it is. So I'm going to ask some questions to try to narrow down when this happens. Can you check with a [new empty Firefox profile](https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles)? Does this happen with `.zip` files as well as `.csv` files? And how are those file types configured to be handled in Firefox's settings in the profile with which you can reproduce the issue?

Back to Bug 1713053 Comment 2