Fix history DND to browser window.

This commit is contained in:
blakeross%telocity.com 2002-10-13 05:00:38 +00:00
parent 9fb0e53e19
commit b723d4949e

View File

@ -151,7 +151,8 @@ var historyDNDObserver = {
var currentIndex = gHistoryTree.currentIndex;
if (isContainer(gHistoryTree, currentIndex))
return false;
var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL");
var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);
var url = builder.getResourceAtIndex(currentIndex).Value;
var title = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "Name");
var htmlString = "<A HREF='" + url + "'>" + title + "</A>";