rem: var i= MAX_HISTORY_MENU_ITEMS; 
add: var i = MAX_URLBAR_HISTORY_MENU_ITEMS; 
context: function createUBHistoryMenu( aParent )  {    if (!gRDF)      gRDF = Components.classes["@mozilla.org/rdf/rdf-service;1"]                       .getService(Components.interfaces.nsIRDFService);    if (!gLocalStore)      gLocalStore = gRDF.GetDataSource("rdf:local-store");    if (gLocalStore) {      if (!gRDFC)        gRDFC = Components.classes["@mozilla.org/rdf/container-utils;1"]                          .getService(Components.interfaces.nsIRDFContainerUtils);      var entries = gRDFC.MakeSeq(gLocalStore, gRDF.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 and disable it.        var na = gNavigatorBundle.getString("nothingAvailable");        createMenuItem(aParent, "nothing_available", na);        aParent.firstChild.setAttribute("disabled", "true");      }      while (entries.hasMoreElements() && (i-- > 0)) {        var entry = entries.getNext();        if (entry) {          try {            entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral);          } catch(ex) {            // XXXbar not an nsIRDFLiteral for some reason. see 90337.            continue;          }          var url = entry.Value;          createMenuItem(aParent, i, url);        }      }    }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ef166c614c0f19163c198af4ce23a095a84da07f/sessionHistoryUI.js/clean/suite/browser/sessionHistoryUI.js