rem: beforeItem.hidden = false; 
add:  var nameResource = gRDF.GetResource(NC_NS + "Name"); 
context: function updateGoMenu(goMenu){  // In case the timer didn't fire.  destroyGoMenuItems(goMenu);  var history = document.getElementById("hiddenHistoryTree");    if (history.hidden) {    history.hidden = false;    var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"]                                  .getService(Components.interfaces.nsIGlobalHistory);    var dataSource = globalHistory.QueryInterface(Components.interfaces.nsIRDFDataSource);    history.database.AddDataSource(dataSource);  }  if (!history.ref)    history.ref = "NC:HistoryRoot";    var count = history.treeBoxObject.view.rowCount;  if (count > 10)    count = 10;  if (count == 0)    return;  const NC_NS     = "http://home.netscape.com/NC-rdf#";  if (!gRDF)     gRDF = Components.classes["@mozilla.org/rdf/rdf-service;1"]                      .getService(Components.interfaces.nsIRDFService);  var builder = history.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);    var beforeItem = document.getElementById("endHistorySeparator");  beforeItem.hidden = false;  var nameResource = gRDF.GetResource(NC_NS + "Name");  for (var i = count-1; i >= 0; i--) {    var res = builder.getResourceAtIndex(i);    var url = res.Value;    var titleRes = history.database.GetTarget(res, nameResource, true);    if (!titleRes)      continue;    var titleLiteral = titleRes.QueryInterface(Components.interfaces.nsIRDFLiteral);    beforeItem = constructGoMenuItem(goMenu, beforeItem, url, titleLiteral.Value);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4e9820309d214fe1d46e05faf2b0ab2fb2369bfa/browser.js/buggy/browser/base/content/browser.js