Closed
Bug 468209
Opened 16 years ago
Closed 16 years ago
_removeRowsFromHistory is broken
Categories
(Firefox :: Bookmarks & History, defect, P2)
Firefox
Bookmarks & History
Tracking
()
VERIFIED
FIXED
Firefox 3.1b3
People
(Reporter: Gavin, Assigned: mak)
References
Details
(Keywords: perf, verified1.9.1)
Attachments
(1 file)
(deleted),
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
From bug 382187 comment #58:
> >+ var URIslice = URIs.slice(i, Math.max(i + REMOVE_PAGES_CHUNKLEN, URIs.length));
> Whoa, this should be Math.min
As far as I can tell this means the first loop removes all of aURIs, and the subsequent iterations call removePages for progressively smaller chunks of already removed URIs. As Neil pointed out in the bug, the Math.min isn't necessary at all, you can just always pass in i + REMOVE_PAGES_CHUNKLEN.
Flags: blocking-firefox3.1?
Reporter | ||
Comment 1•16 years ago
|
||
The practical effects of this bug that I forgot to mention in comment 0 is that deleting a lot of history items is slower than it needs to be, and potentially causes the browser to lock up or show a slow script warning.
Assignee | ||
Comment 4•16 years ago
|
||
Hwv this won't solve the slow script, that is mostly due to persisting selection in the treeView (see _refreshVisibleSection, we can take a look there in bug 466421), hwv it is reducing them a lot, for removing 16000 items i get only 1 slow script now (due to the final loop that do a batch notify that updates the treeview).
Assignee | ||
Comment 5•16 years ago
|
||
Attachment #351677 -
Flags: review?(dietrich)
Assignee | ||
Updated•16 years ago
|
Target Milestone: --- → Firefox 3.1
Reporter | ||
Updated•16 years ago
|
Attachment #351677 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 6•16 years ago
|
||
pushed to trunk:
http://hg.mozilla.org/mozilla-central/rev/1e8779804b50
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•16 years ago
|
||
Comment on attachment 351677 [details] [diff] [review]
patch
approval or blocking please, this was broken code.
Attachment #351677 -
Flags: approval1.9.1?
Updated•16 years ago
|
Assignee | ||
Updated•16 years ago
|
Attachment #351677 -
Flags: approval1.9.1?
Assignee | ||
Comment 8•16 years ago
|
||
Keywords: fixed1.9.1
Assignee | ||
Updated•16 years ago
|
Target Milestone: Firefox 3.1 → Firefox 3.1b3
Comment 9•16 years ago
|
||
verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090127 Shiretoko/3.1b3pre
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
Comment 10•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".
In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body contains places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.
Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.
Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in
before you can comment on or make changes to this bug.
Description
•