Inconsistent behaviour in Download Manager
Categories
(SeaMonkey :: Download & File Handling, defect)
Tracking
(seamonkey2.53+ fixed)
People
(Reporter: gilbertbenoit, Unassigned)
Details
(Whiteboard: SM2.53.9)
Attachments
(1 file)
|
3.91 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7.1
Steps to reproduce:
- Initiate file download.
- Download fails (either cancelled, or server failure)
- Initiate same download again. Successful.
- Remove entry for failed download from the Download Manager.
Actual results:
The downloaded file was deleted.
Expected results:
Removing the entry from the Download Manager should not affect the file. If the initial download succeeds, then the file is not removed (i.e. correct behaviour). The problem only occurs if the initial download failed. As far as I know, this used to work correctly before the recent changes to the Download Manager (i.e. this is a new problem).
Comment 1•4 years ago
|
||
Reproduced under CentOS-7.
After one failed and one successful downloads an attempt to remove one of the two entries (either for failed or for successful) leads to removing of both entries and removing the downloaded file.
Under SM-2.49.5 only one entry (the chosen) is removed and file is not removed.
Comment 2•4 years ago
|
||
Can someone test with a recent Firefox. Smells like Bug 1601904 which was only recently fixed and so should still be a case for current 89.
Comment 3•4 years ago
|
||
Seems OK with the recent FF-78.
The same behaviour with Fx compiled over the 2.53.5 source (despites it seems to use another code for this stuff).
Under Firefox esr78, the both entries are removed from the list, but the downloaded file still exists.
| Reporter | ||
Comment 4•4 years ago
|
||
This is much better, but ideally only the specific entry should be removed from the list (that is how it used to work, and that is the correct behaviour).
Comment 5•4 years ago
|
||
Seems the same, bug #1501277
Comment 6•4 years ago
|
||
Well, the correspond commit from bug #1501277 applies clean (offsets etc. only). No more issue then, the behaviour now matches Firefox (at least esr78).
Comment 7•4 years ago
|
||
Preliminary patch.
Gilbert,
You can try it just against omni.ja:modules/DownloadCore.jsm without need to recompile.
Comment 8•4 years ago
•
|
||
I put both mentioned bugs in todays 2.53.9b1 pre. Should be available in the next hours. I think the later bug from Fx 90 still needs some work. Under Windows it still tries to delete the .part file being downloaded by the seocnd transfer. Looking at the program flow not 100% unexpected but I think it is because the code tries to remove both downloads so a different problem. Wonder why it works for Fx or this time a real problem with the download manager.
| Reporter | ||
Comment 9•3 years ago
|
||
Tested in SeaMonkey 2.53.9
Problem solved.
Comment 10•3 years ago
|
||
Lets close. Fixed by backports so nothing in this bug.
Updated•6 months ago
|
Description
•