зеркало из https://github.com/mozilla/pjs.git
Bug 422528 - History menu extends (entries multiplied and not between dividers). Patch by Marco Bonardo [mak77] <mak77@supereva.it>, r=me.
This commit is contained in:
Родитель
89ffbc5684
Коммит
ee27e69876
|
@ -590,7 +590,7 @@
|
|||
// just add to the end.
|
||||
if (aParentPopup._endMarker != -1)
|
||||
aParentPopup.insertBefore(element,
|
||||
aParentPopup.childNodes[this._endMarker++]);
|
||||
aParentPopup.childNodes[aParentPopup._endMarker++]);
|
||||
else
|
||||
aParentPopup.appendChild(element);
|
||||
}
|
||||
|
|
|
@ -1922,8 +1922,8 @@ var PlacesUtils = {
|
|||
// skip the empty menu item
|
||||
if (aPopup._emptyMenuItem != items[i]) {
|
||||
aPopup.removeChild(items[i]);
|
||||
if (this._endMarker > 0)
|
||||
--this._endMarker;
|
||||
if (aPopup._endMarker > 0)
|
||||
--aPopup._endMarker;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче