Page Info / Media / Save As silently overwrites files
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: Mly, Unassigned)
References
Details
(Keywords: dataloss)
Attachments
(1 file)
|
11.15 KB,
text/html
|
Details |
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
I have tried the STR in comment #1, and there is still no prompt to alert the user about existing filenames when attempting to save more than file simultaneously.
However, instead of silently overwriting the existing files, new files are saved with non-conflicting filenames by using a unique numeric suffix.
When attempting to save a single file, where an existing file with the same name exists, the user is still prompted to confirm overwriting of the single existing file.
I have only been able to test this behaviour on Windows 10.
Updated•3 years ago
|
Comment 4•6 months ago
|
||
Wow, this has been around a while. But I think I have relevant info to add.
Comment 3 says "new files are saved with non-conflicting filenames by using a unique numeric suffix". But that's not entirely true. There seems to be a race condition where existing files from the same batch save operation are overwritten. For example, consider a page with a bunch of data: URL images. They don't have names, but they will be saved as "Image", "Image(2)", etc., or as "Background", "Background(2)", etc. depending on how they are used on the page. Say you select 30 of them and try to save them into a new folder. You should end up with "Image" through "Image(30)". But you can very often end up with only 29 files or 28 or 26. If you look in your Downloads history afterward, all 30 will be listed, but you might see, for example "Image(2)" listed twice in a row, suggesting the first to be named "Image(2)" was saved and immediately overwritten.
I think it's a race condition, in that the behavior is inconsistent from one try to another, but it's very reproducible for me.
Example page: https://unsplash.com/
Once the page loads, open Page Info, click Media tab, sort by type, and select all the backgrounds that use data: URLs, then save them to a new folder. Check for duplicate names in Downloads history and see whether you have them all. Out of 6 times trying this, it always overwrote at least one file and as many as four. I created a test page based on these data: URLs and it reproduced the bug, but somewhat less consistently. Out of six tries, it saved all 30 four times but only 28 or 29 the other times.
Observed on Linux, using Firefox 144.0.2.
Comment 5•6 months ago
|
||
These are extremely small BMP images that I think are automatically generated anyway, so I can't imagine there would be any legit copyright issues.
I think just trying this as a local file, it will block data: URLs, so try one these other ways:
- Serve the file from a web server.
- Visit some other webpage and use Web Developer Tools to replace the entire html element with the one from this file.
Description
•