summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 11:52:31 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 11:52:31 +0200
commit02dffb57c8c330ae6d299141ae97ae23f433a927 (patch)
treeffecffd4d50b28128bc05aafb55be2598dc0947e /application/palemoon
parentb15719c7f8c862b3898bd49930bb11f5202dc893 (diff)
downloadUXP-02dffb57c8c330ae6d299141ae97ae23f433a927.tar
UXP-02dffb57c8c330ae6d299141ae97ae23f433a927.tar.gz
UXP-02dffb57c8c330ae6d299141ae97ae23f433a927.tar.lz
UXP-02dffb57c8c330ae6d299141ae97ae23f433a927.tar.xz
UXP-02dffb57c8c330ae6d299141ae97ae23f433a927.zip
Bug 92737 - Part 9: Download multiple files when multiple items are dropped on Downloads view in Library Window
Issue #121
Diffstat (limited to 'application/palemoon')
-rw-r--r--application/palemoon/components/downloads/content/allDownloadsViewOverlay.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
index 46e867068..d9758cb09 100644
--- a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
+++ b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
@@ -1594,10 +1594,14 @@ DownloadsPlacesView.prototype = {
if (dt.mozGetDataAt("application/x-moz-file", 0))
return;
- let name = { };
- let url = Services.droppedLinkHandler.dropLink(aEvent, name);
- if (url)
- DownloadURL(url, name.value);
+ let links = Services.droppedLinkHandler.dropLinks(aEvent);
+ if (!links.length)
+ return;
+ for (let link of links) {
+ if (link.url.startsWith("about:"))
+ continue;
+ DownloadURL(link.url, link.name);
+ }
}
};