Commit Graph

75 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
c5bf0c134a Bug 1956758 - Expose whether we use a "native" menubar at runtime. r=stransky,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D243431
2025-04-04 09:16:33 +00:00
Jonathan Sudiaman
2ccf793e82 Bug 1946158 - Sidebar toolbar button should move to the right or left based on the sidebar position r=sidebar-reviewers,Gijs,nsharpley
- Live update the button position when user moves the sidebar to the left or right, unless it is not in its default position.
- Ensure the button is placed correctly when initially toggling revamp.
- RTL is already correctly handled, so didn't make any checks to RTL_UI.
- Resetting CUI will also reset the sidebar position.

Differential Revision: https://phabricator.services.mozilla.com/D241226
2025-03-20 14:16:14 +00:00
Mike Conley
81e7aaa842 Bug 1917913 - Add JSDoc documentation for a few more CustomizableUI things. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D241266
2025-03-19 17:45:21 +00:00
Mike Conley
c26fdfdcf8 Bug 1917913 - Add JSDoc documentation for CustomizableUIInternal. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D241265
2025-03-19 17:45:21 +00:00
Alexandru Marc
17a516c190 Backed out 3 changesets (bug 1917913) for causing multiple failures CLOSED TREE
Backed out changeset 332fae91a9e4 (bug 1917913)
Backed out changeset f64ffee0be7f (bug 1917913)
Backed out changeset 803bc2004d8e (bug 1917913)
2025-03-15 05:47:54 +02:00
Mike Conley
606fc77d6f Bug 1917913 - Add JSDoc documentation for a few more CustomizableUI things. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D241266
2025-03-15 02:50:25 +00:00
Mike Conley
5f60544cd7 Bug 1917913 - Add JSDoc documentation for CustomizableUIInternal. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D241265
2025-03-15 02:50:25 +00:00
Gijs Kruitbosch
c7252c05d5 Bug 1948931 - move toolbar window initialization into CustomizableUI, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D238536
2025-02-21 16:07:08 +00:00
Mike Conley
5e236d8ae5 Bug 1917913 - Make CustomizableUI.sys.mjs pass the valid-jsdoc ESLint rule and add initial source documentation. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D222679
2025-01-16 21:14:21 +00:00
Nikki Sharpley
3106c425e7 Bug 1930220 - Assert nothing changes in the toolbar upon browser restarts r=mconley,webdriver-reviewers,whimboo
To help catch bugs such as Bug 1919721, assert the toolbar is unchanged and widgets are in the correct order on browser restart.

Differential Revision: https://phabricator.services.mozilla.com/D233749
2025-01-13 16:40:34 +00:00
Alexandru Marc
6f253b451f Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE 2025-01-13 18:29:52 +02:00
Nikki Sharpley
55d657620d Bug 1938707 - Assert nothing changes in the toolbar upon browser restarts r=mconley,webdriver-reviewers,whimboo
To help catch bugs such as Bug 1919721, assert the toolbar is unchanged and widgets are in the correct order on browser restart.

Differential Revision: https://phabricator.services.mozilla.com/D233749
2025-01-13 16:20:20 +00:00
Nikki Sharpley
96a8625c9d Bug 1919223 - Restore sidebar-button when CustomizableUI is reset if sidebar revamp enabled r=sidebar-reviewers,kcochrane,sclements
Differential Revision: https://phabricator.services.mozilla.com/D232847
2025-01-07 17:32:20 +00:00
Nikki Sharpley
2406690a12 Bug 1932478 - create a new draggable space directly to the left of the URL bar when in vertical tabs mode r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,Gijs
- and remove space next to hamburger menu

Differential Revision: https://phabricator.services.mozilla.com/D230988
2024-12-10 18:19:41 +00:00
Nikki Sharpley
49993c77c2 Bug 1935892 - Fix removed Firefox View button return after restart r=sidebar-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D231614
2024-12-10 14:55:42 +00:00
Narcis Beleuzu
02b99b99dd Backed out changeset ce16236a08a0 (bug 1932478) for bc failure on /browser_UsageTelemetry_toolbars.js 2024-12-10 02:57:32 +02:00
Nikki Sharpley
36d391d42e Bug 1932478 - create a new draggable space directly to the left of the URL bar when in vertical tabs mode r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,Gijs
- and remove space next to hamburger menu

Differential Revision: https://phabricator.services.mozilla.com/D230988
2024-12-09 21:17:46 +00:00
Mike Conley
e06d4179af Bug 1932859 - Prevent auto-closing of the AppMenu / FxA panels when generically clicking the FxA menu message CTA. r=pdahiya,omc-reviewers
The change in CustomizableUI is required because the routine wasn't designed to handle
custom elements with shadow roots. The routine's job is to walk up the ancestry of
the click event and determine if any of the parents have certain characteristics
that would indicate that the event should not close the panel, and without this
change it would bail out as soon as it hit the shadow root if the event's original
target was inside the custom element.

In this case, the element enclosing the fxa-menu-message is the "appMenu-fxa-menu-message"
toolbaritem with `closemenu="none"`, which this modification now lets
CustomizableUI detect.

Differential Revision: https://phabricator.services.mozilla.com/D230560
2024-12-09 21:16:19 +00:00
Stanca Serban
da3d608a00 Backed out changeset dc6b2995a01c (bug 1932478) for causing mochitests failures in browser_vertical_tabs_customize_navbar.js. CLOSED TREE 2024-12-09 21:06:49 +02:00
Nikki Sharpley
716925c0a7 Bug 1932478 - create a new draggable space directly to the left of the URL bar when in vertical tabs mode r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,Gijs
- and remove space next to hamburger menu

Differential Revision: https://phabricator.services.mozilla.com/D230988
2024-12-09 17:23:13 +00:00
Nikki Sharpley
c125adfa0a Bug 1926360 - Save customized fxview, list all tabs button and other tab strip widget locations in nav bar when vertical tabs enabled r=sidebar-reviewers,sclements,mconley
We want the nav-bar customizations to be the same across vertical and horizontal tabs mode, minus the Fxview, "list all tabs" buttons, and any other tab strip widgets moved to the nav-bar.
- If the Fxview and "list all tabs" buttons and tab-strip widgets are removed in the nav-bar in vertical mode, they are removed from the tab-strip when switching back to horizontal mode.
- If the Fxview and "list all tabs" buttons and tab-strip widgets are moved in the nav-bar in vertical mode, this should be remembered for vertical mode. Their positions in horizontal mode should remain as they were in horizontal mode.

Differential Revision: https://phabricator.services.mozilla.com/D227555
2024-12-06 18:10:08 +00:00
Norisz Fay
5772a55552 Backed out changeset a498f80a4000 (bug 1926360) for causing bc failures on browser_unified_extensions_vertical_tabs.js 2024-12-06 18:49:33 +02:00
Norisz Fay
a5c008ec4d Backed out changeset 41beb5fac9ba (bug 1932478) for causing bc failures on browser_1042100_default_placements_update.js, browser_HomePage_add_button.js 2024-12-06 18:36:16 +02:00
Nikki Sharpley
d7137be793 Bug 1932478 - create a new draggable space directly to the left of the URL bar when in vertical tabs mode r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,Gijs
- and remove space next to hamburger menu

Differential Revision: https://phabricator.services.mozilla.com/D230988
2024-12-06 15:35:13 +00:00
Nikki Sharpley
f7f1d178c2 Bug 1926360 - Save customized fxview, list all tabs button and other tab strip widget locations in nav bar when vertical tabs enabled r=sidebar-reviewers,sclements,mconley
We want the nav-bar customizations to be the same across vertical and horizontal tabs mode, minus the Fxview, "list all tabs" buttons, and any other tab strip widgets moved to the nav-bar.
- If the Fxview and "list all tabs" buttons and tab-strip widgets are removed in the nav-bar in vertical mode, they are removed from the tab-strip when switching back to horizontal mode.
- If the Fxview and "list all tabs" buttons and tab-strip widgets are moved in the nav-bar in vertical mode, this should be remembered for vertical mode. Their positions in horizontal mode should remain as they were in horizontal mode.

Differential Revision: https://phabricator.services.mozilla.com/D227555
2024-12-06 15:15:39 +00:00
Sandor Molnar
0bf6cbf1f9 Backed out changeset f04379a895c4 (bug 1926360) for causing bc failures @ browser_verticalTabs_widget_placements.js CLOSED TREE 2024-12-06 01:11:36 +02:00
Nikki Sharpley
e661c25029 Bug 1926360 - Save customized fxview, list all tabs button and other tab strip widget locations in nav bar when vertical tabs enabled r=sidebar-reviewers,sclements,mconley
We want the nav-bar customizations to be the same across vertical and horizontal tabs mode, minus the Fxview, "list all tabs" buttons, and any other tab strip widgets moved to the nav-bar.
- If the Fxview and "list all tabs" buttons and tab-strip widgets are removed in the nav-bar in vertical mode, they are removed from the tab-strip when switching back to horizontal mode.
- If the Fxview and "list all tabs" buttons and tab-strip widgets are moved in the nav-bar in vertical mode, this should be remembered for vertical mode. Their positions in horizontal mode should remain as they were in horizontal mode.

Differential Revision: https://phabricator.services.mozilla.com/D227555
2024-12-05 22:07:47 +00:00
Nikki Sharpley
f8f9ad5022 Bug 1923752 - Remove new tab button from nav bar when vertical tabs enabled r=sidebar-reviewers,sfoster,Gijs,sclements
Differential Revision: https://phabricator.services.mozilla.com/D226960
2024-11-08 15:33:28 +00:00
Mike Conley
dd4373aecb Bug 1920799 - Add a new messaging surface to the AppMenu and PXI menus for describing the value of signing into an FxA. r=pdahiya,Gijs,desktop-theme-reviewers,omc-reviewers,home-newtab-reviewers,fluent-reviewers,hjones,skhamis,nbarrett
Developing tests in a later patch in this series.

Differential Revision: https://phabricator.services.mozilla.com/D223409
2024-10-15 16:15:09 +00:00
Gregory Pappas
8c7823746a Bug 1918681 - part 2: Ensure the list-all-tabs button is visible the first time an extension hides a tab r=extension-reviewers,mconley,dao,willdurand
Depends on D224623

Differential Revision: https://phabricator.services.mozilla.com/D224624
2024-10-09 15:17:13 +00:00
Gregory Pappas
ab4cbe853e Bug 1918681 - part 1: Allow moving the list-all-tabs button again r=dao
In bug 878551, the ability to move the list-all-tabs button was	removed
for a few reasons:

> Moving this widget to the navbar gives it a tiny scaled version of Toolbar.png (like a horizontal line).

> Moving it back to the tab strip make it misbehave. It disappears, but sometimes flickers into view when opening/closing a tab.

These issues are no longer present, so we should be able to allow moving
the list-all-tabs button once again.

Differential Revision: https://phabricator.services.mozilla.com/D224623
2024-10-09 02:35:42 +00:00
Tamas Szentpeteri
0f6c394a5e Backed out changeset 04e9738d508b (bug 1918681) for causing mn failures related to test_initialize_vertical_tabs.py. CLOSED TREE 2024-10-09 03:28:27 +03:00
Gregory Pappas
c07e0ea87e Bug 1918681 - part 1: Allow moving the list-all-tabs button again r=dao
In bug 878551, the ability to move the list-all-tabs button was	removed
for a few reasons:

> Moving this widget to the navbar gives it a tiny scaled version of Toolbar.png (like a horizontal line).

> Moving it back to the tab strip make it misbehave. It disappears, but sometimes flickers into view when opening/closing a tab.

These issues are no longer present, so we should be able to allow moving
the list-all-tabs button once again.

Differential Revision: https://phabricator.services.mozilla.com/D224623
2024-10-08 20:02:20 +00:00
Tamas Szentpeteri
f344fc775f Backed out changeset 9ae14bfd6300 (bug 1918681) for causing mochitest failures on browser_UsageTelemetry_toolbars.js. CLOSED TREE 2024-10-08 21:21:38 +03:00
Gregory Pappas
49e18c5cd9 Bug 1918681 - part 1: Allow moving the list-all-tabs button again r=dao
In bug 878551, the ability to move the list-all-tabs button was	removed
for a few reasons:

> Moving this widget to the navbar gives it a tiny scaled version of Toolbar.png (like a horizontal line).

> Moving it back to the tab strip make it misbehave. It disappears, but sometimes flickers into view when opening/closing a tab.

These issues are no longer present, so we should be able to allow moving
the list-all-tabs button once again.

Differential Revision: https://phabricator.services.mozilla.com/D224623
2024-10-08 14:51:22 +00:00
Nikki Sharpley
b9c3ba706c Bug 1914452 - Update revamp sidebar button to reflect sidebar states r=sidebar-reviewers,desktop-theme-reviewers,dao,sfoster,jsudiaman
- different sidebar button icons for expanded, collapsed sidebar states
- move sidebar-button to beginning of navbar strip, to the left of back button
- update tests to reflect new sidebar button positioning
- add hover animation to button

Differential Revision: https://phabricator.services.mozilla.com/D223406
2024-10-03 14:20:55 +00:00
Sam Foster
58c1f20705 Bug 1899598 - Hide the horizontal tab strip when vertical tabs are enabled. r=mconley,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,emilio,willdurand,sclements
* Remove the #titlebar element, and ensure toolbars that comprise the titlebar get a .browser-titlebar class
* Ensure we call TabBarVisibility.update when initializing with verticalTab=true
* Adjust TabBarVisibility logic so we allow for the vertical tabs case
* Give #navigator-toolbar z-index: var(--browser-area-z-index-toolbox) to ensure the urlbar view doesnt get clipped behind the lower elements

Differential Revision: https://phabricator.services.mozilla.com/D222059
2024-10-02 22:14:13 +00:00
Sandor Molnar
fbc2bb1bd2 Backed out changeset 6ad99c7c787d (bug 1914452) for causing bc sider bar related failures. CLOSED TREE 2024-10-02 21:25:44 +03:00
Nikki Sharpley
20a153c56b Bug 1914452 - Update revamp sidebar button to reflect sidebar states r=sidebar-reviewers,desktop-theme-reviewers,dao,sfoster,jsudiaman
- different sidebar button icons for expanded, collapsed and hidden sidebar states
- move sidebar-button to beginning of navbar strip, to the left of back button
- update tests to reflect new sidebar button positioning

Differential Revision: https://phabricator.services.mozilla.com/D223406
2024-10-02 16:52:46 +00:00
Iulian Moraru
4a9432209c Backed out changeset 98b6ddc6deed (bug 1899598) for causing marionette failures on test_initialize_vertical_tabs.py. CLOSED TREE 2024-10-02 07:49:47 +03:00
Sam Foster
d888c32cc4 Bug 1919721 - Check size before building an empty placements list from gFuturePlacements in CustomizableUI. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D224268
2024-10-02 00:57:15 +00:00
Sam Foster
15a36fe751 Bug 1899598 - Hide the horizontal tab strip when vertical tabs are enabled. r=mconley,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,emilio,willdurand,sclements
* Remove the #titlebar element, and ensure toolbars that comprise the titlebar get a .browser-titlebar class
* Ensure we call TabBarVisibility.update when initializing with verticalTab=true
* Adjust TabBarVisibility logic so we allow for the vertical tabs case
* Give #navigator-toolbar z-index: var(--browser-area-z-index-toolbox) to ensure the urlbar view doesnt get clipped behind the lower elements

Differential Revision: https://phabricator.services.mozilla.com/D222059
2024-10-01 23:37:37 +00:00
Stanca Serban
24647acde4 Backed out changeset 0b970f2cd8fd (bug 1899598) for causing devtools failures in browser_aboutdebugging_devtoolstoolbox_tooltip_markupview.js. CLOSED TREE 2024-10-01 01:54:25 +03:00
Sam Foster
ef30ebaf5c Bug 1899598 - Hide the horizontal tab strip when vertical tabs are enabled. r=mconley,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,emilio,willdurand,sclements
* Remove the #titlebar element, and ensure toolbars that comprise the titlebar get a .browser-titlebar class
* Ensure we call TabBarVisibility.update when initializing with verticalTab=true
* Adjust TabBarVisibility logic so we allow for the vertical tabs case
* Give #navigator-toolbar z-index: var(--browser-area-z-index-toolbox) to ensure the urlbar view doesnt get clipped behind the lower elements

Differential Revision: https://phabricator.services.mozilla.com/D222059
2024-09-30 18:10:42 +00:00
Iulian Moraru
7f4f522517 Backed out changeset 5808b8ac42ad (bug 1914452) for causing multiple bc failures. CLOSED TREE 2024-09-28 02:36:30 +03:00
Nikki Sharpley
8536a92e8d Bug 1914452 - Update revamp sidebar button to reflect sidebar states r=sidebar-reviewers,desktop-theme-reviewers,sfoster,jsudiaman
- different sidebar button icons for expanded, collapsed and hidden sidebar states
- move sidebar-button to beginning of navbar strip, to the left of back button

Differential Revision: https://phabricator.services.mozilla.com/D223406
2024-09-27 20:33:59 +00:00
Sam Foster
adb5a03beb Bug 1899346 - Move CUI widgets out of the horizontal tabstrip when in vertical tabs mode. r=sidebar-reviewers,mconley,sclements,webdriver-reviewers,whimboo,tabbrowser-reviewers
* Ensure tabstrip widgets are temporarily removeable at browser init so the CUI placements are correctly applied
* Shuffle placements during initialization to build the correct toolbars for the verticalTabs pref value
* Notify on the 'tabstrip-orientation-change' topic when the verticalTabs pref changes and CUI placements have been updated
* Add tests for switching tabstrip orientation, and for initializing in verticalTabs mode

Differential Revision: https://phabricator.services.mozilla.com/D217161
2024-09-11 16:27:08 +00:00
Cristina Horotan
211657609a Backed out changeset 0c7c121f1fa3 (bug 1899346) for causing Mn failures at test_quit_restart.py CLOSED TREE 2024-09-04 05:34:33 +03:00
Sam Foster
5ebd63c578 Bug 1899346 - Move CUI widgets out of the horizontal tabstrip when in vertical tabs mode. r=sidebar-reviewers,mconley,sclements,webdriver-reviewers,whimboo
* Ensure tabstrip widgets are temporarily removeable at browser init so the CUI placements are correctly applied
* Shuffle placements during initialization to build the correct toolbars for the verticalTabs pref value
* Notify on the 'tabstrip-orientation-change' topic when the verticalTabs pref changes and CUI placements have been updated
* Add tests for switching tabstrip orientation, and for initializing in verticalTabs mode

Differential Revision: https://phabricator.services.mozilla.com/D217161
2024-09-04 00:12:07 +00:00
Kelly Cochrane
04a3166151 Bug 1913157 - Ensure new sidebar pref is enabled when enabling vertical tabs in Firefox Labs r=sidebar-reviewers,nsharpley,mconley
Differential Revision: https://phabricator.services.mozilla.com/D219887
2024-08-27 17:02:04 +00:00