Fix 198616: Copy Link Location doesn't work in history.

This commit is contained in:
blakeross%telocity.com 2004-02-17 07:28:20 +00:00
parent 4844921640
commit e36f0f8f9d

View File

@ -248,7 +248,11 @@ function historyAddBookmarks()
function historyCopyLink()
{
dump("Not yet implemented!");
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);
}
function buildContextMenu()