Bug 1955621 - Make the tabGroups.enabled Nimbus feature variable use setPref instead of fallbackPref. r=jswinarton,tabbrowser-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D242546
This commit is contained in:
Dão Gottwald
2025-03-21 14:16:57 +00:00
parent 5ef9754492
commit ddb726f7e6
2 changed files with 9 additions and 5 deletions

View File

@@ -143,6 +143,12 @@
"browser.tabs.allow_transparent_browser",
false
);
XPCOMUtils.defineLazyPreferenceGetter(
this,
"_tabGroupsEnabled",
"browser.tabs.groups.enabled",
false
);
XPCOMUtils.defineLazyPreferenceGetter(
this,
"showPidAndActiveness",
@@ -363,10 +369,6 @@
_hoverTabTimer = null;
get _tabGroupsEnabled() {
return NimbusFeatures.tabGroups.getVariable("enabled");
}
get tabs() {
return this.tabContainer.allTabs;
}