This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 11diff --git a/browser/base/content/browser-sidebar.js b/browser/base/content/browser-sidebar.js
2- index f5def93f56fc8d02d6ae6834ca8d2df0aead2379..d784fb44e7263d05fbe4bc562afdecf53fe52f8f 100644
2+ index f5def93f56fc8d02d6ae6834ca8d2df0aead2379..976768180f96c3ae1abec661410d42bf8419d2f6 100644
33--- a/browser/base/content/browser-sidebar.js
44+++ b/browser/base/content/browser-sidebar.js
55@@ -11,6 +11,9 @@ var SidebarUI = {
@@ -178,6 +178,15 @@ index f5def93f56fc8d02d6ae6834ca8d2df0aead2379..d784fb44e7263d05fbe4bc562afdecf5
178178
179179 if (this._box.hasAttribute("positionend")) {
180180 xulStore.persist(this._box, "positionend");
181+ @@ -160,7 +268,7 @@ var SidebarUI = {
182+ /**
183+ * The handler for Services.obs.addObserver.
184+ **/
185+ - observe(_subject, topic, _data) {
186+ + observe(_subject, topic, data) {
187+ switch (topic) {
188+ case "intl:app-locales-changed": {
189+ if (this.isOpen) {
181190@@ -171,6 +279,54 @@ var SidebarUI = {
182191 this.showInitially(this.lastOpenedId);
183192 break;
Original file line number Diff line number Diff line change @@ -291,10 +291,16 @@ var VerticalTabs = {
291291 * @param {MutationObserver } _observer
292292 */
293293 _mutationObserverCallback ( mutationsList , _observer ) {
294+ const browserCollapseTabs = Services . prefs . getBoolPref (
295+ VERTICAL_TABS_COLLAPSE ,
296+ false ,
297+ )
298+ const tabsToolbar = document . getElementById ( 'TabsToolbar' )
299+ if ( browserCollapseTabs ) {
300+ return
301+ }
294302 for ( const mutation of mutationsList ) {
295303 if ( mutation . type === 'attributes' && mutation . attributeName == 'width' ) {
296- const tabsToolbar = document . getElementById ( 'TabsToolbar' )
297-
298304 Services . prefs . setIntPref (
299305 VERTICAL_TABS_WIDTH ,
300306 parseInt ( tabsToolbar ?. getAttribute ( 'width' ) || '100' ) ,
You can’t perform that action at this time.
0 commit comments