Bug 92737 - Part 9: Download multiple files when multiple items are dropped on Downloads view in Library Window

Issue #121
This commit is contained in:
janekptacijarabaci 2018-04-15 11:52:31 +02:00 committed by Roy Tam
commit 04c959e619

View file

@ -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);
}
}
};