diff --git a/browser/base/content/browser-init.js b/browser/base/content/browser-init.js index 2820086f4f2c..154ca4bc5442 100644 --- a/browser/base/content/browser-init.js +++ b/browser/base/content/browser-init.js @@ -154,10 +154,7 @@ var gBrowserInit = { // We don't want these normally non-removable elements to get put back into the // tabstrip if we're initializing with vertical tabs if (isVerticalTabs && !isPopup) { - nonRemovables = [ - gBrowser.tabContainer, - document.getElementById("alltabs-button"), - ]; + nonRemovables = [gBrowser.tabContainer]; for (let elem of nonRemovables) { elem.setAttribute("removable", "true"); // tell CUI to ignore this element when it builds the toolbar areas diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml index 1c4c205462a4..c6199e5742a6 100644 --- a/browser/base/content/navigator-toolbox.inc.xhtml +++ b/browser/base/content/navigator-toolbox.inc.xhtml @@ -90,7 +90,7 @@ delegatesanchor="true" badged="true" data-l10n-id="tabs-toolbar-list-all-tabs" - removable="false"/> + removable="true"/> diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs index 53544a1ed537..b16fbf0da9fc 100644 --- a/browser/components/customizableui/CustomizableUI.sys.mjs +++ b/browser/components/customizableui/CustomizableUI.sys.mjs @@ -4194,7 +4194,6 @@ var CustomizableUIInternal = { // Normally these aren't removable, but for this operation only we need to move them changeWidgetRemovability("tabbrowser-tabs", true); - changeWidgetRemovability("alltabs-button", true); if (toVertical) { lazy.log.debug( @@ -4249,7 +4248,6 @@ var CustomizableUIInternal = { ); this.setToolbarVisibility(CustomizableUI.AREA_TABSTRIP, !toVertical); changeWidgetRemovability("tabbrowser-tabs", false); - changeWidgetRemovability("alltabs-button", false); for (let [win] of gBuildWindows) { win.TabBarVisibility.update(true); diff --git a/browser/modules/test/browser/browser_UsageTelemetry_toolbars.js b/browser/modules/test/browser/browser_UsageTelemetry_toolbars.js index 3c3c651259bc..42d2be147ce2 100644 --- a/browser/modules/test/browser/browser_UsageTelemetry_toolbars.js +++ b/browser/modules/test/browser/browser_UsageTelemetry_toolbars.js @@ -203,6 +203,7 @@ add_task(async function widgetPositions() { "stop-reload-button", "tabbrowser-tabs", "personal-bookmarks", + "alltabs-button", ], "nav-bar": [ @@ -249,7 +250,7 @@ add_task(async function customizeMode() { organizeToolbars({ PersonalToolbar: ["personal-bookmarks"], - TabsToolbar: ["tabbrowser-tabs", "new-tab-button"], + TabsToolbar: ["tabbrowser-tabs", "new-tab-button", "alltabs-button"], "nav-bar": [ "back-button", @@ -344,7 +345,7 @@ add_task(async function contextMenus() { organizeToolbars({ PersonalToolbar: ["personal-bookmarks"], - TabsToolbar: ["tabbrowser-tabs", "new-tab-button"], + TabsToolbar: ["tabbrowser-tabs", "new-tab-button", "alltabs-button"], "nav-bar": [ "back-button",