rem: function FillHistoryMenu(aParent, aMenu) 
add: function FillHistoryMenu(aParent, aMenu, aInsertBefore) 
context: function FillHistoryMenu(aParent, aMenu)  {    // Remove old entries if any    deleteHistoryItems(aParent);    var sessionHistory = getWebNavigation().sessionHistory;    var count = sessionHistory.count;    var index = sessionHistory.index;    var end;    var j;    var entry;    switch (aMenu)      {        case "back":          end = (index > MAX_HISTORY_MENU_ITEMS) ? index - MAX_HISTORY_MENU_ITEMS : 0;          if ((index - 1) < end) return false;          for (j = index - 1; j >= end; j--)            {              entry = sessionHistory.getEntryAtIndex(j, false);              if (entry)                createMenuItem(aParent, j, entry.title);            }          break;        case "forward":          end  = ((count-index) > MAX_HISTORY_MENU_ITEMS) ? index + MAX_HISTORY_MENU_ITEMS : count - 1;          if ((index + 1) > end) return false;          for (j = index + 1; j <= end; j++)            {              entry = sessionHistory.getEntryAtIndex(j, false);              if (entry)                createMenuItem(aParent, j, entry.title);            }          break;        case "go":          aParent.lastChild.hidden = (count == 0);          end = count > MAX_HISTORY_MENU_ITEMS ? count - MAX_HISTORY_MENU_ITEMS : 0;          for (j = count - 1; j >= end; j--)            {              entry = sessionHistory.getEntryAtIndex(j, false);              if (entry)                createRadioMenuItem(aParent, j, entry.title, j==index);            }          break;      }    return true;  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dc094dc4297178d52e8fca145b4986472c4144fe/browser.js/buggy/browser/base/content/browser.js