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:
Nick Grato
2025-02-14 23:37:56 +00:00
parent 06446e1ecf
commit 6cf0bc44df
7 changed files with 677 additions and 78 deletions

View File

@@ -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,