morgan pushed to branch tor-browser-140.2.0esr-15.0-1 at The Tor Project / 
Applications / Tor Browser


Commits:
2c5430c0 by Henry Wilkes at 2025-08-18T14:04:47+01:00
BB 43902: Modify the new sidebar for Base Browser.

- - - - -


1 changed file:

- browser/components/sidebar/browser-sidebar.js


Changes:

=====================================
browser/components/sidebar/browser-sidebar.js
=====================================
@@ -113,6 +113,9 @@ var SidebarController = {
           gleanEvent: Glean.history.sidebarToggle,
           gleanClickEvent: Glean.sidebar.historyIconClick,
           recordSidebarVersion: true,
+          // In permanent private browsing, the history panel can be opened, 
but
+          // we hide the sidebar button to control this. tor-browser#43902.
+          visible: !PrivateBrowsingUtils.permanentPrivateBrowsing,
         }),
       ],
       [
@@ -131,6 +134,15 @@ var SidebarController = {
             ? "sidebar-synced-tabs-context-menu"
             : undefined,
           gleanClickEvent: Glean.sidebar.syncedTabsIconClick,
+          // firefoxview is disabled. tor-browser#42037 and tor-browser#43902.
+          // See bugzilla bug 1983505.
+          // NOTE: The menuId and elementId menu items (sidebar switchers)
+          // should be hidden via the `sync-ui-item` class, which will *one*
+          // time hide the menu items via gSync.init.
+          // #sidebar-switcher-tabs is already in the initial browser DOM,
+          // and #menu_tabsSidebar is created during SidebarController.init,
+          // which seems to run prior to gSync.init.
+          visible: false,
         }),
       ],
       [



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2c5430c09156375a9025d0b318dd47f76aeffdd1

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2c5430c09156375a9025d0b318dd47f76aeffdd1
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to