rem: var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); 
add: var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).Value; 
context:     onDragStart: function (aEvent, aXferData, aDragAction)    {        var currentIndex = gHistoryTree.currentIndex;        if (isContainer(gHistoryTree, currentIndex))            return false;        var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL");        var title = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "Name");        var htmlString = "<A HREF='" + url + "'>" + title + "</A>";        aXferData.data = new TransferData();        aXferData.data.addDataForFlavour("text/unicode", url);        aXferData.data.addDataForFlavour("text/html", htmlString);        aXferData.data.addDataForFlavour("text/x-moz-url", url + "\n" + title);        return true;    }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b723d4949ec2322e649f1b0fe9b9073206a7da4e/history.js/buggy/browser/components/history/content/history.js