Commit Graph

415 Commits

Author SHA1 Message Date
Sarah Clements
999958fa5a Bug 1933818 - Sidebar panel keyboard shortcuts should hide the sidebar r=sidebar-reviewers,nsharpley,jsudiaman
*Update SidebarState logic so that opening and closing panels reverts to the correct launcher visibility for the show and hide setting
*Add a test

Differential Revision: https://phabricator.services.mozilla.com/D231838
2024-12-13 13:24:28 +00:00
Kelly Cochrane
000814bd68 Bug 1897411 - Add keyboard shortcut for expanding/collapsing the new sidebar r=sidebar-reviewers,fluent-reviewers,bolsson,sclements
Differential Revision: https://phabricator.services.mozilla.com/D229405
2024-12-12 21:34:38 +00:00
Fred Chasen
2a40aed615 Bug 1916547 - Part 1: Render Review Checker in the new sidebar. r=shopping-reviewers,firefox-desktop-core-reviewers ,sidebar-reviewers,sclements,mossop,kpatenio
- Adds a remote content browser to contain `about:shoppingsidebar` in `review-checker.xhtml` and update the Review Checker sidebar to use that wrapper document.
- Adds ReviewChecker actors for the sidebar Review Checker panel.
- ReviewCheckerParent is a simplified version of the ShoppingSidebarParent as it does not need to handle the state of the sidebar opening or closing.
- ReviewCheckerChild is just extends ShoppingSidebarChild for now, though it will need to be separate in the future.
- Adds a browser.shopping.experience2023.shoppingSidebar boolean pref to disable ShoppingSidebar actors when they are not needed.
- Fixes `AbortError` error handling when the outer sidebar browser is removed.

Note that any auto-opening or closing behavior will need to be added afterwards, as these actors are not around to check product urls when the sidebar is closed.

Differential Revision: https://phabricator.services.mozilla.com/D222840
2024-12-12 01:24:20 +00:00
Ed Lee
7138179e8f Bug 1905027 - There should be a Keyboard shortcut for the AI chat sidebar r=sidebar-reviewers,sclements,fluent-reviewers,flod,ngrato
Toggle chatbot with Ctrl-Alt-X / Ctrl-X macOS enabling if necessary. Record event on using keyboard shortcut.

Differential Revision: https://phabricator.services.mozilla.com/D226205
2024-12-11 09:01:57 +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
Narcis Beleuzu
7fcf15b525 Backed out changeset 0cec1bf8ce28 (bug 1897411) for bc crashes on browser_private_mode.js 2024-12-10 03:00:26 +02:00
Kelly Cochrane
5750652024 Bug 1897411 - Add keyboard shortcut for expanding/collapsing the new sidebar r=sidebar-reviewers,fluent-reviewers,bolsson,sclements
Differential Revision: https://phabricator.services.mozilla.com/D229405
2024-12-09 21:55:33 +00:00
Sarah Clements
3edf988f42 Bug 1935045 - Add sidebar visibility pref support for experiments r=Mardak,mviar,omc-reviewers,sidebar-reviewers,nsharpley
* Update nimbus variable and browser-sidebar to avoid resetting pref after experiment end
* Allow use of sidebar visibility as a set pref multi-action from spotlight modal

Differential Revision: https://phabricator.services.mozilla.com/D231387
2024-12-09 12:38:01 +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
Jonathan Sudiaman
470e392758 Bug 1930199 - Create a state-based API to manage the multiple states of the sidebar launcher and sidebar panel. r=sidebar-reviewers,sessionstore-reviewers,kcochrane,sfoster,sclements
- Created a SidebarState API to manage reactive properties for the controller.
- Replaced usages of sidebarMain.hidden with state.launcherVisible.
- Replaced usages of sidebarMain.expanded with state.launcherExpanded.
- Removed toggleExpanded() and toggleHide(), replaced with equivalent state toggles.

Differential Revision: https://phabricator.services.mozilla.com/D229558
2024-12-06 16:00:29 +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
Micah Tigley
48c23af5e7 Bug 1934109 - Show discard changes prompt in contextual-password-manager when closing sidebar. r=rsafaeian,credential-management-reviewers,sidebar-reviewers,sfoster,sclements
Differential Revision: https://phabricator.services.mozilla.com/D230636
2024-12-05 18:29:41 +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
Sandor Molnar
0355016f87 Backed out 2 changesets (bug 1934109) for causing reftest failures.
Backed out changeset e59f23ac171e (bug 1934109)
Backed out changeset 92adfd182864 (bug 1934109)
2024-12-06 00:12:23 +02:00
Sandor Molnar
aab5624276 Backed out changeset 85e2f9195dc0 (bug 1905027) for causing failures @ test_no_errors_clean_profile 2024-12-05 23:37:36 +02:00
Ed Lee
4d9a31854e Bug 1905027 - There should be a Keyboard shortcut for the AI chat sidebar r=sidebar-reviewers,sclements,fluent-reviewers,flod,ngrato
Toggle chatbot with Ctrl-Alt-X / Ctrl-X macOS enabling if necessary. Record event on using keyboard shortcut.

Differential Revision: https://phabricator.services.mozilla.com/D226205
2024-12-05 18:31:34 +00:00
Micah Tigley
d7795315f4 Bug 1934109 - Show discard changes prompt in contextual-password-manager when closing sidebar. r=rsafaeian,credential-management-reviewers,sidebar-reviewers,sfoster,sclements
Differential Revision: https://phabricator.services.mozilla.com/D230636
2024-12-05 18:29:41 +00:00
Logan Rosen
d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Emilio Cobos Álvarez
768894a512 Bug 1932600 - Use customtitlebar rather than tabsintitlebar in front-end code. r=dao,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,nsharpley
This is probably also a better reflection of reality now that we can
have vertical tabs which would by definition not be in the titlebar.

Differential Revision: https://phabricator.services.mozilla.com/D229767
2024-11-28 12:12:51 +00:00
Cristina Horotan
bb08cc9f1d Backed out 5 changesets (bug 1930292, bug 1932600) for causing chrome failures at test_maximized_persist.xhtml on a CLOSED TREE
Backed out changeset 2418bfee53f1 (bug 1932600)
Backed out changeset 3297e990715a (bug 1932600)
Backed out changeset 24a670dea977 (bug 1930292)
Backed out changeset 7dd9f48216dd (bug 1930292)
Backed out changeset 15a85ec739dd (bug 1930292)
2024-11-28 06:57:35 +02:00
Emilio Cobos Álvarez
26de824592 Bug 1932600 - Use customtitlebar rather than tabsintitlebar in front-end code. r=dao,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,nsharpley
This is probably also a better reflection of reality now that we can
have vertical tabs which would by definition not be in the titlebar.

Differential Revision: https://phabricator.services.mozilla.com/D229767
2024-11-28 03:26:50 +00:00
Nikki Sharpley
83c7885079 Bug 1908471 - Round content area top corner closest to sidebar r=desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,emilio,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D229676
2024-11-27 19:50:02 +00:00
Kelly Cochrane
530aef4ee6 Bug 1926979 - Hide the 'pre-tabs' .titlebar-spacer and decrease window minimum width when vertical tabs are enabled r=desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D229689
2024-11-27 14:04:01 +00:00
Jonathan Sudiaman
b5e2a6a660 Bug 1892953 - Add ability to resize the sidebar with responsive layout r=sidebar-reviewers,desktop-theme-reviewers,sessionstore-reviewers,reusable-components-reviewers,sclements,kcochrane,mstriemer
- Add a splitter that can be used to resize the launcher by dragging.
- Add "snapping points" to allow dragging to expand or collapse the launcher.
- Total sidebar width (launcher + panel) cannot exceed 75vw.
- Styling updates to show ellipses if labels are cut off due to resizing.

Differential Revision: https://phabricator.services.mozilla.com/D228705
2024-11-26 19:49:05 +00:00
Goloman Adrian
19185332a9 Backed out changeset b9974670bc5c (bug 1892953) for causing bc failures @browser_vertical_tab.js. CLOSED TREE 2024-11-27 06:48:08 +02:00
Jonathan Sudiaman
1ad52ddf70 Bug 1892953 - Add ability to resize the sidebar with responsive layout r=sidebar-reviewers,desktop-theme-reviewers,sessionstore-reviewers,reusable-components-reviewers,sclements,kcochrane,mstriemer
- Add a splitter that can be used to resize the launcher by dragging.
- Add "snapping points" to allow dragging to expand or collapse the launcher.
- Total sidebar width (launcher + panel) cannot exceed 75vw.
- Styling updates to show ellipses if labels are cut off due to resizing.

Differential Revision: https://phabricator.services.mozilla.com/D228705
2024-11-26 19:49:05 +00:00
Sandor Molnar
7d50bb6e2e Backed out changeset c4369fa6e979 (bug 1921471) for causing bc failures @ browser_sidebar_remote.js & browser_unavailable_product.js CLOSED TREE 2024-11-26 00:30:14 +02:00
Fred Chasen
5c68a50632 Bug 1921471 - Use content process to display sidebar contents when appropriate. r=places-reviewers,sidebar-reviewers,mossop,firefox-desktop-core-reviewers ,jsudiaman
* Adds a `remoteType` attribute to the config when registering a sidebar to opt-in to using a remote content process when displaying that sidebar panel.
* Moves loading URLs into a `SidebarController._loadUrl` method, which can be passed a remoteType if the sidebar contents should be displayed in a remote content process. If needed it will replace the sidebar browser element with a remote or non-remote browser to match the remoteType passed.
* Adds browser load listeners methods, a `SidebarController._hasLoaded` promise for non-remote loading and a `SidebarController._hasProgressStopped` promise if the browser is remote.
* Adds a setter for `SidebarController.browser`.
* Adds a `shopping-sidebar` message manager group to avoid actor conflict.

Differential Revision: https://phabricator.services.mozilla.com/D223961
2024-11-25 18:22:14 +00:00
Nikki Sharpley
2bd823760a Bug 1931939 - Don't show extension context menu if clicking sidebar blank area r=sidebar-reviewers,jsudiaman
It seems we were hitting a console error and not reaching the block of code prevents the popup:
`JavaScript error: chrome://browser/content/sidebar/sidebar-main.mjs, line 140: TypeError: can't access property "getAttribute", this.contextMenuTarget is null`

Differential Revision: https://phabricator.services.mozilla.com/D229669
2024-11-25 15:00:24 +00:00
Adi
a1f2bdd9ab Backed out changeset 04f7f20bf82e (bug 1921471) for causing bc failures @browser_syncedtabs_sidebar.js. 2024-11-21 21:25:07 +02:00
Fred Chasen
8dcd4eee5d Bug 1921471 - Use content process to display sidebar contents when appropriate. r=places-reviewers,sidebar-reviewers,mossop,firefox-desktop-core-reviewers ,jsudiaman
* Adds a `remoteType` attribute to the config when registering a sidebar to opt-in to using a remote content process when displaying that sidebar panel.
* Moves loading URLs into a `SidebarController._loadUrl` method, which can be passed a remoteType if the sidebar contents should be displayed in a remote content process. If needed it will replace the sidebar browser element with a remote or non-remote browser to match the remoteType passed.
* Adds browser load listeners methods, a `SidebarController._hasLoaded` promise for non-remote loading and a `SidebarController._hasProgressStopped` promise if the browser is remote.
* Adds a setter for `SidebarController.browser`.
* Adds a `shopping-sidebar` message manager group to avoid actor conflict.

Differential Revision: https://phabricator.services.mozilla.com/D223961
2024-11-21 17:36:56 +00:00
Tim Giles
99606ce3ee Bug 1918490 - Move support link element outside of label element. r=reusable-components-reviewers,accessibility-frontend-reviewers,desktop-theme-reviewers,hjones,nlapre,sidebar-reviewers,nsharpley
The motivation for this change is to improve the screen reader user
experience when navigating through moz-checkbox and moz-radio elements.
When a screen reader encounters and focuses a moz-checkbox or
moz-radio element, only the label is announced. Previously the label
and the support-link element would be announced which is confusing since
it is not clear what will happen when activating one of these moz
elements.

Additionally, we remove the display flex and width rules from
sidebar-customize.css to prevent sidebar test breakage and create a
larger click surface for moz-radio and moz-checkbox when used in the
sidebar.

The moz-input-common.css change makes moz-label behave more like XUL
labels where the click area for the label and control span the entire
width unless there is a support link in the moz-label. In this case,
clicking on the other side of the support link will not activate the
respective control.

We needed to add "label: 'A label'" to the verifySupportPage function
otherwise debug assertions would be thrown and cause test_moz_radio.html
to fail. I'm still not entirely sure why there are debug assertions
failing here, someone with a greater depth of knowledge around layout
reflows would need to investigate.

Differential Revision: https://phabricator.services.mozilla.com/D226181
2024-11-21 16:18:16 +00:00
Nikki Sharpley
d4c933e4d0 Bug 1926788 - Update sidebar extensions and tools icons to match toolbar icons colors r=sidebar-reviewers,desktop-theme-reviewers,kcochrane,dao,hjones,reusable-components-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228238
2024-11-20 17:32:31 +00:00
Stanca Serban
054cfea9cb Backed out changeset 25d954644545 (bug 1892953) for causing mochitests failures in browser_sidebar_move.js. CLOSED TREE 2024-11-19 23:52:07 +02:00
Stanca Serban
faf468d4f2 Backed out changeset 25a8e51c3fe2 (bug 1918490) for causing mochitests failures in test_moz_radio.html. CLOSED TREE 2024-11-19 23:28:07 +02:00
Tim Giles
b6d2c26a8c Bug 1918490 - Move support link element outside of label element. r=reusable-components-reviewers,accessibility-frontend-reviewers,desktop-theme-reviewers,hjones,nlapre,sidebar-reviewers,nsharpley
The motivation for this change is to improve the screen reader user
experience when navigating through moz-checkbox and moz-radio elements.
When a screen reader encounters and focuses a moz-checkbox or
moz-radio element, only the label is announced. Previously the label
and the support-link element would be announced which is confusing since
it is not clear what will happen when activating one of these moz
elements.

Additionally, we remove the display flex and width rules from
sidebar-customize.css to prevent sidebar test breakage and create a
larger click surface for moz-radio and moz-checkbox when used in the
sidebar.

The moz-input-common.css change makes moz-label behave more like XUL
labels where the click area for the label and control span the entire
width unless there is a support link in the moz-label. In this case,
clicking on the other side of the support link will not activate the
respective control.

Differential Revision: https://phabricator.services.mozilla.com/D226181
2024-11-19 20:30:46 +00:00
Jonathan Sudiaman
fe8b4cf59b Bug 1892953 - Add ability to resize the sidebar with responsive layout r=sidebar-reviewers,desktop-theme-reviewers,sessionstore-reviewers,reusable-components-reviewers,sclements,kcochrane,mstriemer
- Add a splitter that can be used to resize the launcher by dragging.
- Add "snapping points" to allow dragging to expand or collapse the launcher.
- Total sidebar width (launcher + panel) cannot exceed 75vw.
- Styling updates to show ellipses if labels are cut off due to resizing.

Differential Revision: https://phabricator.services.mozilla.com/D228705
2024-11-19 19:47:14 +00:00
Emilio Cobos Álvarez
112244f5f4 Bug 1930992 - Don't use toolbar colors for sidebar cards. r=sidebar-reviewers,desktop-theme-reviewers,sclements,dao
Also use consistent borders.

Differential Revision: https://phabricator.services.mozilla.com/D228879
2024-11-19 09:06:38 +00:00
Butkovits Atila
09cd25afd7 Backed out 2 changesets (bug 1930992) for causing failures at browser_html_detail_view.js. CLOSED TREE
Backed out changeset b5d37bddf198 (bug 1930992)
Backed out changeset c182493e091d (bug 1930992)
2024-11-18 23:31:05 +02:00
Emilio Cobos Álvarez
7fbd133c36 Bug 1930992 - Don't use toolbar colors for sidebar cards. r=sidebar-reviewers,desktop-theme-reviewers,sclements,dao
Also use consistent borders.

Differential Revision: https://phabricator.services.mozilla.com/D228879
2024-11-18 19:55:03 +00:00
Emilio Cobos Álvarez
d7cc161950 Bug 1930992 - Remove unused headerIconUrl from fxview-empty-state.mjs. r=sidebar-reviewers,fxview-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D228882
2024-11-15 11:42:39 +00:00
Emilio Cobos Álvarez
9dfbafe602 Bug 1930992 - Remove irrelevant declaration. r=sidebar-reviewers,sclements
The fxview images (synced-tabs-{error,empty}.svg) don't use context
paint, so this does nothing, afaict.

Differential Revision: https://phabricator.services.mozilla.com/D228881
2024-11-15 11:42:39 +00:00
Sam Foster
5a10bc9cad Bug 1931408 - Use the 2nd-to-last day of the previous month and re-enable the browser_history_sidebar.js test. r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D228925
2024-11-14 19:43:30 +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
Nikki Sharpley
434c90c533 Bug 1928116 - Update search synced tabs string for sidebar and firefox view r=sidebar-reviewers,fluent-reviewers,flod,fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D228235
2024-11-08 15:28:03 +00:00
Nikki Sharpley
972df0a857 Bug 1916230 - Update tools and extensions buttons selected background to match toolbar buttons r=sidebar-reviewers,desktop-theme-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D228356
2024-11-08 14:39:55 +00:00
Kelly Cochrane
f28de57311 Bug 1929972 - Fix for new sidebar callout trigger being called as sidebar panel is closing instead of opening r=sidebar-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D228380
2024-11-08 13:45:00 +00:00
Jonathan Sudiaman
fab02dfc13 Bug 1926116 - Update tooltips for sidebar tools that have shortcuts r=sidebar-reviewers,fluent-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D227070
2024-11-08 12:59:22 +00:00