rem: var url = builder.getResourceAtIndex(gHistoryTree.currentIndex).Value; 
add: var url = builder.getResourceAtIndex(gHistoryTree.currentIndex).ValueUTF8; 
context: function historyCopyLink(){  var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);  var url = builder.getResourceAtIndex(gHistoryTree.currentIndex).Value;  var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"]                            .getService(Components.interfaces.nsIClipboardHelper );  clipboard.copyString(url);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1de2188bbff9814e427a912de5e1627fb77da78e/history.js/buggy/browser/components/history/content/history.js