From d0a67b6b061d9b4f15918567a4cea2a89c86baf0 Mon Sep 17 00:00:00 2001 From: Ryosuke Asano Date: Thu, 19 Oct 2023 13:30:19 +0900 Subject: [PATCH] [FB] Verticaltab | Retry to fix --- browser/base/content/browser-verticaltabs.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/browser/base/content/browser-verticaltabs.js b/browser/base/content/browser-verticaltabs.js index 885bbce9..44b7557b 100644 --- a/browser/base/content/browser-verticaltabs.js +++ b/browser/base/content/browser-verticaltabs.js @@ -3,6 +3,7 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); function setWorkspaceLabel() { @@ -109,6 +110,15 @@ function setVerticalTabs() { // Observer toggleCustomizeModeVerticaltabStyle(); + + + // Modify the tab bar + window.setTimeout(() => { + if (document.querySelector("#browser #TabsToolbar")?.getAttribute("hidden") != "true") { + document.getElementById("browser").prepend(document.getElementById("TabsToolbar")); + document.getElementById("TabsToolbar").removeAttribute("hidden"); + } + }, 1000); } else { // TODO: Re-implement the vertical tab bar. This code is not working. document.getElementById("titlebar").prepend(document.getElementById("TabsToolbar"));