diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 11:52:31 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 11:52:31 +0200 |
commit | 02dffb57c8c330ae6d299141ae97ae23f433a927 (patch) | |
tree | ffecffd4d50b28128bc05aafb55be2598dc0947e /application/palemoon/components/downloads/content | |
parent | b15719c7f8c862b3898bd49930bb11f5202dc893 (diff) | |
download | UXP-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/components/downloads/content')
-rw-r--r-- | application/palemoon/components/downloads/content/allDownloadsViewOverlay.js | 12 |
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); + } } }; |