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() {
|
hideAllTabsPanel() {
|
||||||
if (this.allTabsView) {
|
let panel = this.allTabsView?.closest("panel");
|
||||||
PanelMultiView.hidePopup(this.allTabsView.closest("panel"));
|
if (panel) {
|
||||||
|
PanelMultiView.hidePopup(panel);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user