rem: if (!aName) {  var rSource = RDF.GetResource(aURL); var HISTDS  = RDF.GetDataSource("rdf:history"); var nameArc = RDF.GetResource(gNC_NS+"Name"); var rName   = HISTDS.GetTarget(rSource, nameArc, true); aName       = rName ? rName.QueryInterface(kRDFLITIID).Value : aDefaultName; if (!aName) aName = aURL; } 
add: if (!aName) aName = this.getTitleForURLFromHistory(aURL, aDefaultName);  
context:   createBookmark: function (aName, aURL, aCharSet, aDefaultName)  {    if (!aName) {      // look up in the history ds to retrieve the name      var rSource = RDF.GetResource(aURL);      var HISTDS  = RDF.GetDataSource("rdf:history");      var nameArc = RDF.GetResource(gNC_NS+"Name");      var rName   = HISTDS.GetTarget(rSource, nameArc, true);      aName       = rName ? rName.QueryInterface(kRDFLITIID).Value : aDefaultName;      if (!aName)        aName = aURL;    }    if (!aCharSet) {      var fw = document.commandDispatcher.focusedWindow;      if (fw)        aCharSet = fw.document.characterSet;    }    return BMSVC.createBookmark(aName, aURL, null, null, aCharSet, null);  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/736e9f5b879c35de5c250880ae132762305f9ad8/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js