Closed
Bug 516637
Opened 17 years ago
Closed 17 years ago
Remove download manager search feature
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
Attachments
(1 file)
|
9.56 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
Remove the UI and related code. We will likely revisit this feature after 1.0
Attachment #400661 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•17 years ago
|
tracking-fennec: --- → ?
Comment 3•17 years ago
|
||
Comment on attachment 400661 [details] [diff] [review]
patch
>diff --git a/chrome/content/downloads.js b/chrome/content/downloads.js
>- // Make the item and add it to the end if it's active or matches the search
>+ // Make the item and add it to the end
> let item = this._createItem(attrs);
>- if (item && (isActive || this._matchesSearch(item))) {
>- // Add item to the end
>- this._list.appendChild(item);
>- }
>- else {
>- // We didn't add an item, so bump up the number of items to process, but
>- // not a whole number so that we eventually do pause for a chunk break
>- aNumItems += .9;
>- }
>+ this._list.appendChild(item);
I don't understand why removing the isActive check is OK (though this code is hard enough to follow that I'm probably missing something).
>- this._initStatement(mode.value);
Much of _initStatement is now unused given that we only call it without aMode, so it could be simplified and/or inlined.
Looks good otherwise.
| Assignee | ||
Comment 4•17 years ago
|
||
(In reply to comment #3)
> (From update of attachment 400661 [details] [diff] [review])
> I don't understand why removing the isActive check is OK (though this code is
> hard enough to follow that I'm probably missing something).
The check was a bit weird: _createItem can't really fail and without a search, all items will match. The isActive (which was used to add items that were downloading, but not matching the current search) wasn't needed anymore.
> Much of _initStatement is now unused given that we only call it without aMode,
> so it could be simplified and/or inlined.
I can look into that.
Comment 5•17 years ago
|
||
Comment on attachment 400661 [details] [diff] [review]
patch
ok, r=me with _initStatement cleaned up or a followup filed.
Attachment #400661 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 6•17 years ago
|
||
I cleaned up _initStatment and pushed:
https://hg.mozilla.org/mobile-browser/rev/cb8d30f915c4
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 7•17 years ago
|
||
verified on my n810 with 20090921 1.9.2 nightly build
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
tracking-fennec: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•