mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
Bug 973195 - [e10s] Change Copy Link in context-menu to use JS instead of cmd_copyLink. r=felipe
This commit is contained in:
parent
748d773593
commit
288af30ff5
@ -56,7 +56,7 @@
|
||||
<menuitem id="context-copylink"
|
||||
label="©LinkCmd.label;"
|
||||
accesskey="©LinkCmd.accesskey;"
|
||||
oncommand="goDoCommand('cmd_copyLink');"/>
|
||||
oncommand="gContextMenu.copyLink();"/>
|
||||
<menuseparator id="context-sep-copylink"/>
|
||||
<menuitem id="context-media-play"
|
||||
label="&mediaPlay.label;"
|
||||
|
@ -1330,6 +1330,12 @@ nsContextMenu.prototype = {
|
||||
clipboard.copyString(addresses, document);
|
||||
},
|
||||
|
||||
copyLink: function() {
|
||||
var clipboard = Cc["@mozilla.org/widget/clipboardhelper;1"].
|
||||
getService(Ci.nsIClipboardHelper);
|
||||
clipboard.copyString(this.linkURL, document);
|
||||
},
|
||||
|
||||
///////////////
|
||||
// Utilities //
|
||||
///////////////
|
||||
|
Loading…
Reference in New Issue
Block a user