"Save file as..." file picker should show instead of the UnknownContentType dialog
Categories
(Firefox :: Downloads Panel, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox92 | --- | fixed |
People
(Reporter: mtigley, Assigned: ava8katushka)
References
Details
Attachments
(1 file)
Steps to Reproduce
- Ensure browser.download.improvements_to_download_panel pref is set to true.
- Ensure "Always ask you where to save files" option is selected from about:preferences
- Download a file from https://filesamples.com/formats/png
Expected Results
The "Save files as..." file picker should prompt the user on where to save the file.
Actual Results
The "What do you want Firefox to do with this file" dialog shows.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Do I understand correctly, that if person selects "Always ask you where to save files" option from about:preferences, only one dialog should be shown, "where to save this file"?
What about the behavior if user selects "Always ask" on a specific file, say, png files in Applications section in about:preferences. Which dialog should be shown? "What should firefox do with this file?" or "Where to save this file"? Or both?
Assignee | ||
Comment 2•3 years ago
|
||
Here is the table of current behavior:
Always ask you where to save files | improvements_to_download_panel | action | unknown_content_dialog | where to save file dialog |
---|---|---|---|---|
true | true / false | - | shown | shown if save is selected |
false | true | - | - | - |
false | false | - | shown | - |
true | true / false | save | - | shown |
false | true / false | save | - | - |
true | true / false | always ask | shown | shown if save is selected |
false | true | always ask | - | - |
false | false | always ask | shown | - |
true | true / false | open with | shown | shown if save is selected |
false | false | open with | shown | - |
false | true | open with | - | - |
Could you also use this table to point out what should be different?
Assignee | ||
Comment 3•3 years ago
|
||
Do I understand correctly that we want changes in these 3 behaviors?
Always ask you where to save files | improvements_to_download_panel | action | unknown_content_dialog | where to save file dialog |
---|---|---|---|---|
true | true | - | - | shown |
true | true | always ask | - | shown |
true | true | open with | - | shown |
Comment 4•3 years ago
|
||
(In reply to Ava Katushka from comment #3)
Do I understand correctly that we want changes in these 3 behaviors?
Always ask you where to save files improvements_to_download_panel action unknown_content_dialog where to save file dialog true true - - shown true true always ask - shown true true open with - shown
I think the first and last one are correct here. I think that 'always ask' should probably show the unknown_content_dialog first, followed by the "where to save" dialog (which would now always come up, not only if the user picks "save to disk"). Does that help?
Assignee | ||
Comment 5•3 years ago
|
||
Also solves 1719902 - the default system action is changed from "opening with file" to saving.
Updated•3 years ago
|
Assignee | ||
Comment 6•3 years ago
|
||
think that 'always ask' should probably show the unknown_content_dialog first, followed by the "where to save" dialog
That's the behavior right now.
As for "Launch with application" currently in code launch with application and save file to disk are two parallel actions which don't cross:
if/else -> https://searchfox.org/mozilla-central/source/uriloader/exthandler/nsExternalHelperAppService.cpp#1958
comment -> https://searchfox.org/mozilla-central/source/uriloader/exthandler/nsExternalHelperAppService.cpp#2557
And prompting "where to save" is a part of the path of saving to disk, but not launching with application. I think it goes along with assumption that files files which are about to be opened are saved in the temp directory.
Should we change it so we will ask about the save location if "ask where to save file" is set to true?
Assignee | ||
Updated•3 years ago
|
Reporter | ||
Comment 7•3 years ago
|
||
(In reply to Ava Katushka from comment #1)
Do I understand correctly, that if person selects "Always ask you where to save files" option from about:preferences, only one dialog should be shown, "where to save this file"?
What about the behavior if user selects "Always ask" on a specific file, say, png files in Applications section in about:preferences. Which dialog should be shown? "What should firefox do with this file?" or "Where to save this file"? Or both?
That's a good point. In general, we want to do away with showing the unknown content dialog and only show the filepicker dialog when "Always ask where to save files" is set.
It might be easier to think about the cases when we DO show the unknown content dialog(as you've outlined in the table above). Right now, I think there's one specific case where it makes sense to:
- if the user has configured to have "Always ask you where to save files" set and has a specific file type set to "Always ask".
(In reply to Ava Katushka from comment #3)
Do I understand correctly that we want changes in these 3 behaviors?
Always ask you where to save files improvements_to_download_panel action unknown_content_dialog where to save file dialog true true - - shown true true always ask - shown true true open with - shown
As you mentioned in Comment 6, the second row is already the existing behavior so I don't think we need to adjust anything for that (i.e: just show the unknown content dialog here)
For the first and third rows, yes we should show the "Save File as" dialog in both cases.
Comment 9•3 years ago
|
||
bugherder |
Reporter | ||
Updated•3 years ago
|
Description
•