mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 468209 - _removeRowsFromHistory is broken, r=gavin
This commit is contained in:
parent
eed26095de
commit
984b1ec0a4
@ -990,8 +990,9 @@ PlacesController.prototype = {
|
||||
if (URIs.length > REMOVE_PAGES_MAX_SINGLEREMOVES) {
|
||||
// do removal in chunks to avoid passing a too big array to removePages
|
||||
for (var i = 0; i < URIs.length; i += REMOVE_PAGES_CHUNKLEN) {
|
||||
var URIslice = URIs.slice(i, Math.max(i + REMOVE_PAGES_CHUNKLEN, URIs.length));
|
||||
// set DoBatchNotify only on the last chunk
|
||||
var URIslice = URIs.slice(i, i + REMOVE_PAGES_CHUNKLEN);
|
||||
// set DoBatchNotify (third param) only on the last chunk, so we update
|
||||
// the treeView when we are done.
|
||||
bhist.removePages(URIslice, URIslice.length,
|
||||
(i + REMOVE_PAGES_CHUNKLEN) >= URIs.length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user