mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Fix 198616: Copy Link Location doesn't work in history.
This commit is contained in:
parent
4844921640
commit
e36f0f8f9d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user