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