Save Link to Disk Dialog Allows multiple 'File Save AS' dialogs to be opened
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: darkmane, Unassigned)
References
Details
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
Comment 7•23 years ago
|
||
Updated•23 years ago
|
![]() |
||
Comment 9•23 years ago
|
||
Comment 10•22 years ago
|
||
Updated•22 years ago
|
Updated•16 years ago
|
Updated•9 years ago
|
Comment 12•4 years ago
|
||
Oh boy, a 21-year old bug. For the record, this is still a problem. It can't be that difficult to not open more than one of these at the same time??
Even worse: when I'm typing some sensitive password as the dialog happens to pop up, presto people see the tail of the password and the file is stored with that name.
Comment 13•4 years ago
|
||
NB, this can happens easily when I click on a download link and the server replies late / there are already N on-going downloads.
Comment 14•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:Gijs, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 15•3 years ago
|
||
In Firefox 98 we no longer show the "what do you want to do with this file" dialog by default so the priority of this is much lower, tbh.
Updated•2 years ago
|
Comment 16•9 months ago
|
||
The bug is independent of "what do you want to do with this file" or Save link to disk.
It can be triggered with a regular download.
Step to reproduced randomly (depends on timing) with:
1 [TAB] to a download link
2 Press [Enter]
3 Wait for the download dialog to appear.
4 Press [Enter]
Randomly about 5% of my downloads result in 5B and the rest in 5A Probably because the wait on 3 is too short.
5A The save dialog is closed and download proceed or overwrite prompt is shown.
5B A Second Save dialog appears exactly on top of the other.
Comment 17•9 months ago
•
|
||
(In reply to Gauthier Van Vreckem from comment #16)
The bug is independent of "what do you want to do with this file" or Save link to disk.
It can be triggered with a regular download.Step to reproduced randomly (depends on timing) with:
1 [TAB] to a download link
2 Press [Enter]
3 Wait for the download dialog to appear.
Which dialog? The downloads panel, the "What do you want to do with this file" dialog, or a "where do you want to save this file" dialog, or...?
Which one appears will depend on the filetype, link specifics, and your user settings. More detailed steps to reproduce (ideally, starting from a clean Firefox profile, what settings do you change, and an specific webpage where you experience this issue) would really help to assess your claim this is "independent" of anything, and/or to see if what you're asking about is actually different from comment 0 or not.
Comment 18•9 months ago
|
||
(In reply to :Gijs (he/him) from comment #17)
(In reply to Gauthier Van Vreckem from comment #16)
The bug is independent of "what do you want to do with this file" or Save link to disk.
It can be triggered with a regular download.Step to reproduced randomly (depends on timing) with:
1 [TAB] to a download link
2 Press [Enter]
3 Wait for the download dialog to appear.Which dialog? The downloads panel, the "What do you want to do with this file" dialog, or a "where do you want to save this file" dialog, or...?
The dialog I'm referring to is the standard Microsoft Windows Save As Dialog Commdlg32 GetSaveFileNameA.
The Save As dialog is meant to be modal, somehow firefox managed to evade that, as the keyboard input is randomy (timing dependent) sent to the browser instead of the dialog.
Note that once a second Save As Dialog is opened (and not interacted with), the focus remain on the download link a repeated [Enter] will again open a dialog on top of the others.
Client configuration
Firefox 126.0.1
Windows 10 22H2 19045.4412
comdlg32.dll 10.0.19041.4355 (not sure that's the one firefox load)
Possibly relevant settings changes:
Listed from about:config but actually changed trough the UI
Name | Value |
---|---|
browser.download.dir | C:... (probably not relevant) |
browser.download.useDownloadDir | false |
browser.download.alwaysOpenPanel | false |
browser.download.panel.shown | true |
browser.download.always_ask_before_handling_new_types | false |
Applications doesn't list any of the MIME type relevant to the downloads I do.
application/epub+zip, application/zip
Server Configuration
The server with download links send a
HTTP/2 302
location:...
The redirect then send (there may be some delay in the reply)
HTTP/2 200
content-disposition: attachment; filename=xxxxx.zip
content-type: application/zip
....
X-Firefox-Spdy: h2
Faster reproduction method:
Open inspector to the network panel to help with timing.
1 [TAB] to download link 1
2 Press [Enter]
3 [TAB] to download link 2
4 Press [Enter]
Possible outcomes dependent on step 4 timing:
a) Download link 1 is saved or file overwrite prompt is shown.
This happen when the first Save As dialog has enough time to be shown and keystroke from steps 3, 4 are consumed by the Save As Dialog.
b) Download link 2 Save As dialog is shown.
This happen when the second TAB occurs before the redirect happens.
Somehow firefox cancel the first download request that's bad.
c) Download link 2 Save As dialog is open on top of Download Link 1 Save As dialog.
This happen when the second TAB occurs after the redirect but before the first Save As dialog is shown.
Save as dialog are meant to be modal, the Save as request should be queued instead of being dispatched in parallel.
Outcome b is in fact a distinct bug (download canceled when it shouldn't)
Description
•