зеркало из https://github.com/mozilla/gecko-dev.git
Every other bookmark isn't deleted (80833)
We don't need to increment count since we splice elements out of the selection array. r=jag, sr=blake, a=chofmann.
This commit is contained in:
Родитель
235e8852b8
Коммит
92fb92d1f0
|
@ -590,8 +590,6 @@ BookmarksUIElement.prototype = {
|
|||
ksRDFC.Init(kBMDS, krParent);
|
||||
nextElement = this.getNextElement(aSelection[count]);
|
||||
ksRDFC.RemoveElement(krBookmark, true);
|
||||
// Manipulate the selection array ourselves.
|
||||
aSelection.splice(count,1);
|
||||
|
||||
try {
|
||||
// XXX - UGH. Template builder is NOT removing the element from the
|
||||
|
@ -602,8 +600,8 @@ BookmarksUIElement.prototype = {
|
|||
}
|
||||
catch (e) {
|
||||
}
|
||||
|
||||
++count;
|
||||
// Manipulate the selection array ourselves.
|
||||
aSelection.splice(count,1);
|
||||
}
|
||||
this.selectElement(nextElement);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче