Bug 1946523 - STG - Step 1 UI migration r=fluent-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,bolsson
Adding additional UI elements and filling out state machine with actualy UI updates. Some functions are stubbed out while waiting on ML to have API up on central. These UI changes should have no change to current UI if pref is turned off. Differential Revision: https://phabricator.services.mozilla.com/D237277
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
this.tabContainer = document.getElementById("tabbrowser-tabs");
|
||||
this.tabGroupMenu = document.getElementById("tab-group-editor");
|
||||
this.tabbox = document.getElementById("tabbrowser-tabbox");
|
||||
this.tabGroupNameField = document.getElementById("tab-group-name");
|
||||
this.tabpanels = document.getElementById("tabbrowser-tabpanels");
|
||||
this.verticalPinnedTabsContainer = document.getElementById(
|
||||
"vertical-pinned-tabs-container"
|
||||
@@ -2948,6 +2949,13 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
gBrowser.getGroupTitleForTabs(tabs).then(newLabel => {
|
||||
group.label = newLabel;
|
||||
if (this.tabGroupMenu.panel.state !== "closed") {
|
||||
this.tabGroupNameField.value = newLabel;
|
||||
}
|
||||
});
|
||||
|
||||
group.dispatchEvent(
|
||||
new CustomEvent("TabGroupCreate", {
|
||||
bubbles: true,
|
||||
|
||||
Reference in New Issue
Block a user