rem: var ubHistory = appCore.urlbarHistory; if (ubHistory) { ubHistory.addEntry( gURLBar.value ); ubHistory.printHistory() } 
add:  var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http: true);  while (entries.hasMoreElements()) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var url = entry.Value; if (url == urlToAdd) { dump("URL already in urlbar history\n"); return; } } } dump("Adding " + urlToAdd + "to urlbar history\n"); localstore.Assert(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http: rdf.GetLiteral(urlToAdd), true); } 
context: function addToUrlbarHistory()  {    var ubHistory = appCore.urlbarHistory;    if (ubHistory)       {        ubHistory.addEntry( gURLBar.value );        ubHistory.printHistory()      }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3a2c0a394b15923a12d8c50d7d1e5c94ea0a1c2c/sessionHistoryUI.js/buggy/xpfe/browser/resources/content/sessionHistoryUI.js