summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 11:47:06 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 11:47:06 +0200
commitd15edc6fd6d5f96a46793871d60487ba1dac10b2 (patch)
tree4f74ca7ce19e5b2253a5f944d243e34ea44aa54b /application/palemoon/base/content
parentd432689a50bc57be3b38e0b8ec8e1171bc26b2b2 (diff)
downloadUXP-d15edc6fd6d5f96a46793871d60487ba1dac10b2.tar
UXP-d15edc6fd6d5f96a46793871d60487ba1dac10b2.tar.gz
UXP-d15edc6fd6d5f96a46793871d60487ba1dac10b2.tar.lz
UXP-d15edc6fd6d5f96a46793871d60487ba1dac10b2.tar.xz
UXP-d15edc6fd6d5f96a46793871d60487ba1dac10b2.zip
Bug 92737 - Part 6: Open multiple tabs when multiple items are dropped on New Tab button
Issue #121
Diffstat (limited to 'application/palemoon/base/content')
-rw-r--r--application/palemoon/base/content/browser.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index efd26c2b9..9c8e16942 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -2770,11 +2770,14 @@ var newTabButtonObserver = {
onDrop: function (aEvent)
{
- let url = browserDragAndDrop.drop(aEvent, { });
- getShortcutOrURIAndPostData(url).then(data => {
- if (data.url) {
- // allow third-party services to fixup this URL
- openNewTabWith(data.url, null, data.postData, aEvent, 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
+ openNewTabWith(data.url, null, data.postData, aEvent, true);
+ }
}
});
}