Bug 1936282 - When using the tab context menu to create a group from the all tabs panel, make sure we close that panel so that it doesn't obscure the tab group creation panel. r=dwalker,tabbrowser-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D236160
This commit is contained in:
Dão Gottwald
2025-01-31 06:49:38 +00:00
parent 58251769b4
commit 69404071c4
2 changed files with 8 additions and 2 deletions

View File

@@ -200,8 +200,9 @@ var gTabsPanel = {
}, },
hideAllTabsPanel() { hideAllTabsPanel() {
if (this.allTabsView) { let panel = this.allTabsView?.closest("panel");
PanelMultiView.hidePopup(this.allTabsView.closest("panel")); if (panel) {
PanelMultiView.hidePopup(panel);
} }
}, },

View File

@@ -8696,6 +8696,11 @@ var TabContextMenu = {
this.contextTab.multiselected ? gBrowser.selectedTabs : [this.contextTab], this.contextTab.multiselected ? gBrowser.selectedTabs : [this.contextTab],
{ insertBefore: this.contextTab, showCreateUI: true } { insertBefore: this.contextTab, showCreateUI: true }
); );
// When using the tab context menu to create a group from the all tabs
// panel, make sure we close that panel so that it doesn't obscure the tab
// group creation panel.
gTabsPanel.hideAllTabsPanel();
}, },
moveTabsToGroup(group) { moveTabsToGroup(group) {