Bug 285647 Make forward and back button drop-down lists have same maximum length

r=mconnor a=asa
This commit is contained in:
cst%andrew.cmu.edu 2005-04-26 16:37:28 +00:00
parent 3b2c94de8e
commit f0c247db7e
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)