Commit Graph

234 Commits

Author SHA1 Message Date
Butkovits Atila
a375e8316f Backed out changeset ead9919b0da6 (bug 1938249) for causing failures at test_restore_sidebar.py. CLOSED TREE 2025-01-27 23:43:36 +02:00
Nikki Sharpley
5d44461250 Bug 1938249 - Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane
- disable expand behaviour for horizontal tabs mode
- remove expand/collapse option from customize panel when horizontal mode (follow up bug to land immediately after - bug 1939917)
- default horizontal mode to show/hide with the launcher visible initially
- default vertical mode to expand/collapse
- remove auto collapsing behviour when expanded and opening a panel

Differential Revision: https://phabricator.services.mozilla.com/D234592
2025-01-27 18:19:26 +00:00
Goloman Adrian
7dc18d7e06 Backed out changeset 2e8e6c3c9ad8 (bug 1938249) for causing bc failures @browser_glean_sidebar.js. CLOSED TREE 2025-01-27 18:50:28 +02:00
Nikki Sharpley
e80180f302 Bug 1938249 - Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane
- disable expand behaviour for horizontal tabs mode
- remove expand/collapse option from customize panel when horizontal mode (follow up bug to land immediately after - bug 1939917)
- default horizontal mode to show/hide with the launcher visible initially
- default vertical mode to expand/collapse
- remove auto collapsing behviour when expanded and opening a panel

Differential Revision: https://phabricator.services.mozilla.com/D234592
2025-01-27 15:52:05 +00:00
Sandor Molnar
0e23de4f07 Backed out changeset 125d12cc3cdb (bug 1938249) for causing bc failures @ browser_sidebar_keys.js CLOSED TREE 2025-01-25 01:11:14 +02:00
Nikki Sharpley
463d047cea Bug 1938249 - Disable expanded sidebar behaviour for horizontal tabs mode r=sidebar-reviewers,desktop-theme-reviewers,dao,jsudiaman,kcochrane
- disable expand behaviour for horizontal tabs mode
- remove expand/collapse option from customize panel when horizontal mode (follow up bug to land immediately after - bug 1939917)
- default horizontal mode to show/hide with the launcher visible initially
- default vertical mode to expand/collapse
- remove auto collapsing behviour when expanded and opening a panel

Differential Revision: https://phabricator.services.mozilla.com/D234592
2025-01-24 21:34:33 +00:00
kpatenio
9463115662 Bug 1941047 - Add new probe for tracking whenever RC is loaded/unloaded in the sidebar. r=sidebar-reviewers,shopping-reviewers,rking
Differential Revision: https://phabricator.services.mozilla.com/D235052
2025-01-24 18:16:41 +00:00
Jonathan Sudiaman
28e3caf8b0 Bug 1940163 - Add telemetry probe to distinguish between panel toggles coming from the old and new sidebar r=sidebar-reviewers,firefox-ai-ml-reviewers,nsharpley,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D233882
2025-01-16 18:04:24 +00:00
Jonathan Sudiaman
9372222c8c Bug 1935482 - Replace legacy properties with SidebarState properties r=sidebar-reviewers,sessionstore-reviewers,nsharpley,sfoster
- Move resize observer (setting max width) logic over to SidebarState.
- Add `command` property to SidebarState.
- Handle receiving legacy session restore data.
- Add unit tests along with mocking structures to get a better idea of state/controller coupling (which we should ultimately reduce).

Differential Revision: https://phabricator.services.mozilla.com/D232730
2025-01-08 23:06:42 +00:00
Gijs Kruitbosch
c462bad48a Bug 1939639 - don't try to access this.toolbarButton before it's available, r=kcochrane,sidebar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D233068
2025-01-02 14:27:46 +00:00
Nikki Sharpley
eab78f9f15 Bug 1933761 - Fix view sidebar menu checked states r=sidebar-reviewers,sfoster
Any menu items that were added after `viewCustomizeSidebar` in `this.sidebars`, such as extensions, were previous ignored in `selectMenuItem` thus resulting in an incorrect checked state in the menu.

Differential Revision: https://phabricator.services.mozilla.com/D232648
2024-12-19 22:38:42 +00:00
Nikki Sharpley
2d0cfb1365 Bug 1933592 - Hide the sidebar launcher if the sidebar toolbar button is removed r=sidebar-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D231749
2024-12-18 16:07:19 +00:00
Norisz Fay
066b9b823f Backed out changeset f76adacaf89e (bug 1933592) for causing sidebar related bc failures 2024-12-17 22:34:55 +02:00
Nikki Sharpley
a55e56e8ea Bug 1933592 - Hide the sidebar launcher if the sidebar toolbar button is removed r=sidebar-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D231749
2024-12-17 18:45:58 +00:00
Stanca Serban
8786cc2a86 Backed out changeset d72b9cd2e9ab (bug 1933592) for sidebar related mochitests failures. CLOSED TREE 2024-12-17 19:55:12 +02:00
Nikki Sharpley
77ffffe41a Bug 1933592 - Hide the sidebar launcher if the sidebar toolbar button is removed r=sidebar-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D231749
2024-12-17 15:41:49 +00:00
Jonathan Sudiaman
5abf22ac7f Bug 1936839 - Expanded sidebar sometimes does not show labels for vertical tabs r=sidebar-reviewers,kcochrane
- Ensure that init() does not clear existing state.
- Keep tab container's "expanded" attribute up to date, as that controls the tab styling.

Differential Revision: https://phabricator.services.mozilla.com/D232259
2024-12-17 14:43:54 +00:00
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
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
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
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
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
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
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
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
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
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
Sam Foster
a712bf3840 Bug 1921836 - Consolidate the restoreSidebar implementations, and ensure the sidebar launcher gets un-hidden when a sidebar is shown. r=sidebar-reviewers,sessionstore-reviewers,jsudiaman,sclements
Differential Revision: https://phabricator.services.mozilla.com/D227420
2024-11-05 23:34:25 +00:00
Stanca Serban
7bb12fdb44 Backed out changeset 1768e3e28918 (bug 1921836) for causing mochitests failures in browser_toolbar_sidebar_button.js. 2024-11-04 23:37:28 +02:00
Sam Foster
149a4a2aa9 Bug 1921836 - Consolidate the restoreSidebar implementations, and ensure the sidebar launcher gets un-hidden when a sidebar is shown. r=sidebar-reviewers,sessionstore-reviewers,jsudiaman,sclements
Differential Revision: https://phabricator.services.mozilla.com/D227420
2024-11-04 18:54:59 +00:00
Jonathan Sudiaman
8f6d47875d Bug 1927499 - Sidebar is showing in extensions popup when closing multiple tabs (and potentially in other popups) r=sidebar-reviewers,nsharpley
Checks to make sure that the backup state isn't being loaded in a popup window. Adds a test for the scenario which causes this bug.

Differential Revision: https://phabricator.services.mozilla.com/D227119
2024-10-29 19:45:44 +00:00
Tamas Szentpeteri
7aa7c6235f Backed out changeset 08df39c35f9d (bug 1905027) as requested by Mardak for causing 1927304. CLOSED TREE 2024-10-27 18:38:15 +02:00
Ed Lee
0e72f5e021 Bug 1905027 - There should be a Keyboard shortcut for the AI chat sidebar r=sidebar-reviewers,sclements,fluent-reviewers,flod,ngrato
Toggle chatbot with accel-shift-i enabling if necessary. Record event on using keyboard shortcut.

Differential Revision: https://phabricator.services.mozilla.com/D226205
2024-10-25 14:33:50 +00:00
Jonathan Sudiaman
9e5735c395 Bug 1926647 - With new sidebar enabled, opening private windows always have the sidebar expanded. r=sidebar-reviewers,sclements
- Ensure that we don't load the backup state if a private window was spawned from a non-private one.
- Ensure that undefined values (i.e. missing backup state properties) are not used to set UI state.
- Remove setup functions that "pushed" existing tests to pass, as these concealed a real issue.

Differential Revision: https://phabricator.services.mozilla.com/D226716
2024-10-24 14:24:41 +00:00
Jonathan Sudiaman
a2e2548835 Bug 1923972 - Telemetry for icons on the sidebar r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D226681
2024-10-23 22:25:58 +00:00
Norisz Fay
327e2a6efe Backed out changeset 298bca8a48dc (bug 1905027) for causing multiple dt failures 2024-10-23 23:47:43 +03:00
Ed Lee
3896deb1b4 Bug 1905027 - There should be a Keyboard shortcut for the AI chat sidebar r=sidebar-reviewers,sclements,fluent-reviewers,flod,ngrato
Toggle chatbot with accel-shift-i enabling if necessary. Record event on using keyboard shortcut.

Differential Revision: https://phabricator.services.mozilla.com/D226205
2024-10-23 17:42:19 +00:00
Sarah Clements
9135d8e91d Bug 1925469 - Update tools icons in the sidebar to correct svg r=sidebar-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D226479
2024-10-22 15:55:34 +00:00