Closed Bug 830190 Opened 11 years ago Closed 11 years ago

Switch download manager from ids to guids

Categories

(SeaMonkey :: Download & File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 833015

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file)

Toolkit has deprecated the use of ids to identify downloads.
Attached patch Proposed patchSplinter Review
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #701649 - Flags: review?(iann_bugzilla)
Attachment #701649 - Flags: feedback?(philip.chee)
Comment on attachment 701649 [details] [diff] [review]
Proposed patch

Looks good.
>          for each (let dldata in selItemData)
> -          pauseDownload(dldata.dlid);
> +          dldata.dld.pause();
["for each" isn't going away any time soon but since it's a E4Xism perhaps we should take the opportunity to switch our code to use for...in in a follow up bug]
Attachment #701649 - Flags: feedback?(philip.chee) → feedback+
(In reply to Philip Chee from comment #2)
> (From update of attachment 701649 [details] [diff] [review])
> >          for each (let dldata in selItemData)
> > -          pauseDownload(dldata.dlid);
> > +          dldata.dld.pause();
> ["for each" isn't going away any time soon but since it's a E4Xism perhaps
> we should take the opportunity to switch our code to use for...in in a
> follow up bug]
[I assume you meant for...of]
> [I assume you meant for...of]
[you assume correctly ;)]
Blocks: 833015
Comment on attachment 701649 [details] [diff] [review]
Proposed patch

Something is broken with this patch applied.
STR
1/ Open Download manager
2/ Go to http://www.seamonkey-project.org/start/
3/ Right click on SeaMonkey graphic and select Save Image As
4/ Select location and save
5/ Look in download manager

Expect Result
1/ Single line with Finished in it

Actual Result
1/ Four line:
* 1 with completed progress bar 8.7 of 8.7 KB
* 1 with empty progress bar 0 bytes of 8.7 KB
* 1 with 0 in progress column, 0 bytes in transferred column and Not Started in Speed column
* 1 with Finished in Progress, 8.7 of 8.7 KB

In error console there is multiple messages all saying one of the following:
Timestamp: 26/01/13 14:56:02
Error: TypeError: dld is undefined
Source File: chrome://communicator/content/downloads/treeView.js
Line: 141
Timestamp: 26/01/13 14:56:02
Warning: ReferenceError: reference to undefined property dl.dld
Source File: chrome://communicator/content/downloads/treeView.js
Line: 154
Timestamp: 26/01/13 14:56:02
Error: TypeError: dl.dld is undefined
Source File: chrome://communicator/content/downloads/treeView.js
Line: 154
Attachment #701649 - Flags: review?(iann_bugzilla) → review-
(In reply to Ian Neal from comment #5)
> Something is broken with this patch applied.
Yes, there were a couple of bugs in addDownload, I have fixed them in the rollup patch in bug 833015. I might as well close this bug, all the work is being handled there now.
No longer blocks: 833015
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: