Closed Bug 1115379 Opened 10 years ago Closed 10 years ago

Streamline DownloadsViewItemController construction and remove now unneeded identifiers

Categories

(Firefox :: Downloads Panel, defect)

defect
Not set
normal
Points:
2

Tracking

()

RESOLVED FIXED
Firefox 38
Iteration:
38.1 - 26 Jan

People

(Reporter: Paolo, Assigned: Paolo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch The patch (obsolete) — Splinter Review
We can now efficiently keep DownloadsViewItemController instances in a Map. Currently there are at most three of them for each Downloads Panel. The comment saying we must keep track of deleted instances is not true with the new Downloads API anymore. These changes allow us to remove the dummy download identifiers.
Attachment #8541264 - Flags: review?(jaws)
Attachment #8541264 - Flags: review?(mak77)
Assignee: nobody → paolo.mozmail
Flags: qe-verify-
Flags: firefox-backlog+
Comment on attachment 8541264 [details] [diff] [review] The patch Review of attachment 8541264 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/downloads/content/downloads.js @@ +830,5 @@ > } > }, > > /** > + * Associates each richlistbox Element for a download with its corresponding maybe it would make more sense to speak about "richlistitem" instead of "richlistbox element" @@ +973,1 @@ > let localFile = controller.dataItem.localFile; nit: could be merged into: let localFile = DownloadsView.controllerForElement(element) .dataItem.localFile; @@ +1333,5 @@ > /** > * Handles all the user interaction events, in particular the "commands", > * related to a single item in the downloads list widgets. > */ > +function DownloadsViewItemController(aDataItem) { looks like this change breaks http://mxr.mozilla.org/mozilla-central/source/browser/components/downloads/test/browser/browser_basic_functionality.js#52
Attachment #8541264 - Flags: review?(mak77) → feedback+
Attached patch Updated patchSplinter Review
Attachment #8541264 - Attachment is obsolete: true
Attachment #8547564 - Flags: review?(mak77)
Attachment #8547564 - Flags: review?(mak77) → review+
Hi Paolo, can you provide a point value.
Status: NEW → ASSIGNED
Iteration: --- → 38.1 - 26 Jan
Flags: needinfo?(paolo.mozmail)
Points: --- → 2
Flags: needinfo?(paolo.mozmail)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: