mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 285647 Make forward and back button drop-down lists have same maximum length
r=mconnor a=asa
This commit is contained in:
parent
3b2c94de8e
commit
f0c247db7e
@ -2668,7 +2668,7 @@ function FillHistoryMenu(aParent, aMenu)
|
||||
case "forward":
|
||||
end = ((count-index) > MAX_HISTORY_MENU_ITEMS) ? index + MAX_HISTORY_MENU_ITEMS : count;
|
||||
if ((index + 1) >= end) return false;
|
||||
for (j = index + 1; j < end; j++)
|
||||
for (j = index + 1; j <= end; j++)
|
||||
{
|
||||
entry = sessionHistory.getEntryAtIndex(j, false);
|
||||
if (entry)
|
||||
|
@ -440,7 +440,7 @@ function FillHistoryMenu(aParent, aMenu)
|
||||
case "forward":
|
||||
end = ((count-index) > MAX_HISTORY_MENU_ITEMS) ? index + MAX_HISTORY_MENU_ITEMS : count;
|
||||
if ((index + 1) >= end) return false;
|
||||
for (j = index + 1; j < end; j++)
|
||||
for (j = index + 1; j <= end; j++)
|
||||
{
|
||||
entry = sessionHistory.getEntryAtIndex(j, false);
|
||||
if (entry)
|
||||
|
Loading…
Reference in New Issue
Block a user