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:
@@ -200,8 +200,9 @@ var gTabsPanel = {
|
||||
},
|
||||
|
||||
hideAllTabsPanel() {
|
||||
if (this.allTabsView) {
|
||||
PanelMultiView.hidePopup(this.allTabsView.closest("panel"));
|
||||
let panel = this.allTabsView?.closest("panel");
|
||||
if (panel) {
|
||||
PanelMultiView.hidePopup(panel);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -8696,6 +8696,11 @@ var TabContextMenu = {
|
||||
this.contextTab.multiselected ? gBrowser.selectedTabs : [this.contextTab],
|
||||
{ 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) {
|
||||
|
||||
Reference in New Issue
Block a user