rem: var url = builder.getResourceAtIndex(currentIndex).Value; 
add: var url = builder.getResourceAtIndex(currentIndex).ValueUTF8; 
context: function historyAddBookmarks(){  var count = gHistoryTree.treeBoxObject.view.selection.count;  if (count != 1)    return;    var currentIndex = gHistoryTree.currentIndex;  var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);  var url = builder.getResourceAtIndex(currentIndex).Value;    //XXXBlake don't use getCellText  var title = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "Name");  BookmarksUtils.addBookmark(url, title, undefined);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1de2188bbff9814e427a912de5e1627fb77da78e/history.js/buggy/browser/components/history/content/history.js