mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
chore: Added semi-support for different container cross-window drag and drop, b=(no-bug), c=tabs
This commit is contained in:
@@ -639,7 +639,7 @@
|
||||
? gBrowser.selectedTabs
|
||||
: [TabContextMenu.contextTab];
|
||||
for (let i = 0; i < tabs.length; i++) {
|
||||
const tab = tabs[i];
|
||||
let tab = tabs[i];
|
||||
if (tab.hasAttribute('zen-essential')) {
|
||||
continue;
|
||||
}
|
||||
@@ -653,7 +653,14 @@
|
||||
pin.isEssential = true;
|
||||
this.savePin(pin);
|
||||
}
|
||||
ZenWorkspaces.getEssentialsSection(tab).appendChild(tab);
|
||||
if (tab.ownerGlobal !== window) {
|
||||
tab = gBrowser.adoptTab(tab, {
|
||||
selectTab: tab.selected,
|
||||
});
|
||||
tab.setAttribute('zen-essential', 'true');
|
||||
} else {
|
||||
ZenWorkspaces.getEssentialsSection(tab).appendChild(tab);
|
||||
}
|
||||
gBrowser.tabContainer._invalidateCachedTabs();
|
||||
} else {
|
||||
gBrowser.pinTab(tab);
|
||||
|
Reference in New Issue
Block a user