case "history": aInsertBefore.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, entry.URI ? entry.URI.spec : null, j==index, aInsertBefore); } break; 
function FillHistoryMenu(aParent, aMenu, aInsertBefore)  {    // Remove old entries if any    deleteHistoryItems(aParent);    var webNav = getWebNavigation();    if (!webNav) {      // This is always the case for non-browser windows (and the hidden window)      // on OS X      return true;    }    var sessionHistory = webNav.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 "history":          aInsertBefore.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,                                    entry.URI ? entry.URI.spec : null,                                    j==index,                                    aInsertBefore);            }          break;      }    // enable/disable RCT sub menu    HistoryMenu.toggleRecentlyClosedTabs();    return true;  }
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/667daca8acaf862d56b1c480c8b92325a082e37a/browser.js/clean/browser/base/content/browser.js