diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 11:48:06 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 11:48:06 +0200 |
commit | c16c115ea719abdcddbe5106e126935c9f391be8 (patch) | |
tree | 062d5e5d492bd1d7ee55fc700f72a6ac8150b810 /application/palemoon/base/content/browser.js | |
parent | d15edc6fd6d5f96a46793871d60487ba1dac10b2 (diff) | |
download | UXP-c16c115ea719abdcddbe5106e126935c9f391be8.tar UXP-c16c115ea719abdcddbe5106e126935c9f391be8.tar.gz UXP-c16c115ea719abdcddbe5106e126935c9f391be8.tar.lz UXP-c16c115ea719abdcddbe5106e126935c9f391be8.tar.xz UXP-c16c115ea719abdcddbe5106e126935c9f391be8.zip |
Bug 92737 - Part 7: Open multiple windows when multiple items are dropped on New Window button
Issue #121
Diffstat (limited to 'application/palemoon/base/content/browser.js')
-rw-r--r-- | application/palemoon/base/content/browser.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js index 9c8e16942..3f294d82b 100644 --- a/application/palemoon/base/content/browser.js +++ b/application/palemoon/base/content/browser.js @@ -2793,11 +2793,14 @@ var newWindowButtonObserver = { }, onDrop: function (aEvent) { - let url = browserDragAndDrop.drop(aEvent, { }); - getShortcutOrURIAndPostData(url).then(data => { - if (data.url) { - // allow third-party services to fixup this URL - openNewWindowWith(data.url, null, data.postData, true); + let links = browserDragAndDrop.dropLinks(aEvent); + Task.spawn(function*() { + for (let link of links) { + let data = yield getShortcutOrURIAndPostData(link.url); + if (data.url) { + // allow third-party services to fixup this URL + openNewWindowWith(data.url, null, data.postData, true); + } } }); } |