mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
Bug 92737 - Part 6: Open multiple tabs when multiple items are dropped on New Tab button
Issue #121
This commit is contained in:
parent
8f66070f19
commit
e2409ebbc1
1 changed files with 8 additions and 5 deletions
|
|
@ -2769,12 +2769,15 @@ var newTabButtonObserver = {
|
||||||
|
|
||||||
onDrop: function (aEvent)
|
onDrop: function (aEvent)
|
||||||
{
|
{
|
||||||
let url = browserDragAndDrop.drop(aEvent, { });
|
let links = browserDragAndDrop.dropLinks(aEvent);
|
||||||
getShortcutOrURIAndPostData(url).then(data => {
|
Task.spawn(function*() {
|
||||||
|
for (let link of links) {
|
||||||
|
let data = yield getShortcutOrURIAndPostData(link.url);
|
||||||
if (data.url) {
|
if (data.url) {
|
||||||
// allow third-party services to fixup this URL
|
// allow third-party services to fixup this URL
|
||||||
openNewTabWith(data.url, null, data.postData, aEvent, true);
|
openNewTabWith(data.url, null, data.postData, aEvent, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue