Closed Bug 842194 Opened 11 years ago Closed 11 years ago

Download manager does not update when removing download

Categories

(SeaMonkey :: Download & File Handling, defect)

defect
Not set
normal

Tracking

(seamonkey2.18 fixed)

RESOLVED FIXED
seamonkey2.19
Tracking Status
seamonkey2.18 --- fixed

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 file)

Steps to reproduce problem:
1. Open Download Manager
2. Select an inactive download
3. Edit - Remove From List
Expected result: download manager updates immediately
Actual result: need to close and reopen download manager

The problem is that the removed download observer needs to be updated for the id/guid change.
Fortunately I had already updated treeView.js to remove a download by guid, but I hadn't realised that the notification had changed. Oops.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #714989 - Flags: review?(philip.chee)
I get the below on trunk (2.19) an Aurora (2.18) when clicking a trash can icon in the Download Manager window at least twice. I presume that will be fixed through this bug?

Error: NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDownload.remove]
Source File: chrome://communicator/content/downloads/treeView.js
Line: 222
(In reply to Jens Hatlak from comment #2)
> I get the below on trunk (2.19) an Aurora (2.18) when clicking a trash can
> icon in the Download Manager window at least twice. I presume that will be
> fixed through this bug?
> 
> Error: NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111
> (NS_ERROR_NOT_AVAILABLE) [nsIDownload.remove]
> Source File: chrome://communicator/content/downloads/treeView.js
> Line: 222

Indeed, feel free to try the patch out for yourself!
Comment on attachment 714989 [details] [diff] [review]
Proposed patch [Checkin: Comments 6 and 9]

As expected, with the patch, clicking a trash can successfully removes a download again, so clicking it again is impossible and the error messages cannot be triggered anymore. :-)
Attachment #714989 - Flags: feedback+
Comment on attachment 714989 [details] [diff] [review]
Proposed patch [Checkin: Comments 6 and 9]

r=me
Attachment #714989 - Flags: review?(philip.chee) → review+
Pushed comm-central changeset ba229520fc5f.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.19
Comment on attachment 714989 [details] [diff] [review]
Proposed patch [Checkin: Comments 6 and 9]

[Approval Request Comment]
Regression caused by (bug #): Bug 833015
User impact if declined: Items stay in DLMGR, UI seems to be broken
Testing completed (on m-c, etc.): Landed on c-c and has f+
Risk to taking this patch (and alternatives if risky): Low
String changes made by this patch: None
Attachment #714989 - Flags: approval-comm-aurora?
Comment on attachment 714989 [details] [diff] [review]
Proposed patch [Checkin: Comments 6 and 9]

a=me
Attachment #714989 - Flags: approval-comm-aurora? → approval-comm-aurora+
Comment on attachment 714989 [details] [diff] [review]
Proposed patch [Checkin: Comments 6 and 9]

http://hg.mozilla.org/releases/comm-aurora/rev/73b92eaf5da5
Attachment #714989 - Attachment description: Proposed patch → Proposed patch [Checkin: Comments 6 and 9]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: