rem: .createInstance(Components.interfaces.nsIURI); 
add: .createInstance(Components.interfaces.nsIURI); 
context: function addToUrlbarHistory(){	var urlToAdd = gURLBar.value;	if (!urlToAdd)	   return;	if (localstore) {       var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history"));       if (!entries)          return;              var elements = entries.GetElements();       if (!elements)          return;                var index = 0;       // create the nsIURI objects for comparing the 2 urls       var uriToAdd = Components.classes["@mozilla.org/network/standard-url;1"]                            .createInstance(Components.interfaces.nsIURI);       uriToAdd.spec = urlToAdd;       var rdfUri = Components.classes["@mozilla.org/network/standard-url;1"]                          .createInstance(Components.interfaces.nsIURI);        while(elements.hasMoreElements()) {          entry = elements.getNext();          if (entry) {             index ++;             entry= entry.QueryInterface(Components.interfaces.nsIRDFLiteral);             var rdfValue = entry.Value;             rdfUri.spec = rdfValue;             if (rdfUri.equals(uriToAdd)) {                 // URI already present in the database                 // Remove it from its current position.                 // It is inserted to the top after the while loop.                 entries.RemoveElementAt(index, true);                 break;                              }                       }           }   // while            var entry = rdf.GetLiteral(urlToAdd);       // Otherwise, we've got a new URL in town. Add it!       // Put the value as it was typed by the user in to RDF       // Insert it to the beginning of the list.       entries.InsertElementAt(entry, 1, true);       // Remove any expired history items so that we don't let        // this grow without bound.       for (index = entries.GetCount(); index > MAX_HISTORY_ITEMS; --index) {           entries.RemoveElementAt(index, true);        }  // for   }  // localstore}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a53f6ed3b92bbedaed7a32774dedce5c90c9040f/sessionHistoryUI.js/clean/suite/browser/sessionHistoryUI.js