rem:   deleteHistoryItems(aParent); if (!entries.hasMoreElements()) {  var na = bundle.GetStringFromName( "nothingAvailable" ); createMenuItem(aParent, "nothing_available", na); } 
add:   deleteHistoryItems(aParent); if (!entries.hasMoreElements()) {  var na = bundle.GetStringFromName( "nothingAvailable" ); createMenuItem(aParent, "nothing_available", na); } 
context: function createUBHistoryMenu( aParent )  {    var ubHistory = appCore.urlbarHistory;    if (localstore) {      var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history")).GetElements();      var i= MAX_HISTORY_MENU_ITEMS;            // Delete any old menu items only if there are legitimate      // urls to display, otherwise we want to display the       // '(Nothing Available)' item.     	  deleteHistoryItems(aParent);      if (!entries.hasMoreElements()) {               	    //Create the "Nothing Available" Menu item          	   		var na = bundle.GetStringFromName( "nothingAvailable" );		createMenuItem(aParent, "nothing_available", na);            }           while (entries.hasMoreElements() && (i-- > 0)) {        var entry = entries.getNext();        if (entry) {          entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral);          var url = entry.Value;          createMenuItem(aParent, i, url);        }      }    }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0a116c7a4692ec031ac7194f38e926f30de12f05/sessionHistoryUI.js/clean/xpfe/browser/resources/content/sessionHistoryUI.js