rem: if (len > 0) deleteHistoryItems( aEvent ); 
add:  deleteHistoryItems( aEvent ); 
context: function createUBHistoryMenu( aEvent )  {    var ubHistory = appCore.urlbarHistory;    if (ubHistory)      {        var len = ubHistory.count;        var end = (len > MAX_HISTORY_MENU_ITEMS) ? (len - MAX_HISTORY_MENU_ITEMS) : 0;        if (len > 0)          deleteHistoryItems( aEvent ); // Delete old History Menus        for (var i = len - 1; i >= end; i--)          createMenuItem( aEvent.target, i, ubHistory.getEntryAtIndex(i));      }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3a3c654a54024a1e43ed50c39695f140fce28739/sessionHistoryUI.js/buggy/xpfe/browser/resources/content/sessionHistoryUI.js