Closed
Bug 1115379
Opened 10 years ago
Closed 10 years ago
Streamline DownloadsViewItemController construction and remove now unneeded identifiers
Categories
(Firefox :: Downloads Panel, defect)
Firefox
Downloads Panel
Tracking
()
People
(Reporter: Paolo, Assigned: Paolo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
13.31 KB,
patch
|
mak
:
review+
|
Details | Diff | 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)
Assignee | ||
Updated•10 years ago
|
Attachment #8541264 -
Flags: review?(mak77)
Updated•10 years ago
|
Assignee: nobody → paolo.mozmail
Flags: qe-verify-
Flags: firefox-backlog+
Comment 1•10 years ago
|
||
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+
Updated•10 years ago
|
Attachment #8541264 -
Flags: review?(jaws)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8541264 -
Attachment is obsolete: true
Attachment #8547564 -
Flags: review?(mak77)
Updated•10 years ago
|
Attachment #8547564 -
Flags: review?(mak77) → review+
Comment 3•10 years ago
|
||
Hi Paolo, can you provide a point value.
Status: NEW → ASSIGNED
Iteration: --- → 38.1 - 26 Jan
Flags: needinfo?(paolo.mozmail)
Assignee | ||
Updated•10 years ago
|
Points: --- → 2
Flags: needinfo?(paolo.mozmail)
Assignee | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
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.
Description
•