summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 00:19:51 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 00:19:51 +0200
commit8c2251203783094a16b7914b8196316f96077ffc (patch)
tree6b3a8584ae015b2f1c537fae57539dded4be1b3f /application
parentefcc6f36620f1f73456a65e5571f3f2a42a76ca6 (diff)
downloaduxp-8c2251203783094a16b7914b8196316f96077ffc.tar.gz
[PALEMOON] [frontend vs backend] Downloads: Fix - the context menu - "Copy Download Link"
Issue mcp-graveyard/UXP#121
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/components/downloads/content/allDownloadsViewOverlay.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
index 4ed2b6e3da..054f0405f4 100644
--- a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
+++ b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
@@ -1394,16 +1394,11 @@ DownloadsPlacesView.prototype = {
_copySelectedDownloadsToClipboard:
function DPV__copySelectedDownloadsToClipboard() {
- let selectedElements = this._richlistbox.selectedItems;
- // Tycho: let urls = [e._shell.downloadURI for each (e in selectedElements)];
- let urls = [];
-
- for each (e in selectedElements) {
- urls.push(e._shell.downloadURI);
- }
+ let urls = [for (element of this._richlistbox.selectedItems)
+ element._shell.downloadURI];
Cc["@mozilla.org/widget/clipboardhelper;1"].
- getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"), document);
+ getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"));
},
_getURLFromClipboardData: function DPV__getURLFromClipboardData() {