Commit Graph

256 Commits

Author SHA1 Message Date
Tim Giles
2a57ef1dd6 Bug 1902083 - Move sidebar padding into moz-buttons. r=reusable-components-reviewers,sidebar-reviewers,desktop-theme-reviewers,hjones,jsudiaman,dao,tabbrowser-reviewers
Moves the sidebar padding into the moz-buttons.
This results in an accessibility improvement by giving users a larger
click surface for these buttons.

These changes prevent visual regressions in the sidebar by ensuring
visual consistency in the following cases:
- Pinned tabs in the expanded and collapsed states when using vertical
tabs
- Pinned tabs in the expanded and collapsed states when using
horizontal tabs
- New tab button, actual tabs, and action lists in the expanded and
collapsed states when using vertical tabs

Differential Revision: https://phabricator.services.mozilla.com/D219064
2024-09-12 14:35:55 +00:00
Emilio Cobos Álvarez
b36505ece7 Bug 1915230 - Make animation and duration configurable. r=sidebar-reviewers,kcochrane
And tweak the default duration as per UX feedback.

Differential Revision: https://phabricator.services.mozilla.com/D221718
2024-09-12 10:02:05 +00:00
Emilio Cobos Álvarez
d9fad8f233 Bug 1915230 - Use a translate transform only. r=sidebar-reviewers,desktop-theme-reviewers,kcochrane,dao
This:

 * Works around the WebRender issue from bug 1916599.
 * Might be a bit simpler to reason about (the sidebar special-cases to
   keep the buttons at the right edge are a bit unfortunate but...).
 * Avoids the squishiness that Markus and Sam were discussing in
   #gfx-firefox).

There's still some flickering on the <browser> element, but I have a
good idea of how to fix it (basically, we're triggering resizes from
layout, but for remote iframes we really don't want to do that, because
it can cause raciness / flickering as observed).

Differential Revision: https://phabricator.services.mozilla.com/D221351
2024-09-12 10:02:04 +00:00
Emilio Cobos Álvarez
2fc55271bc Bug 1915230 - Make sidebar animation use transforms. r=mconley,dao,sidebar-reviewers,desktop-theme-reviewers,kcochrane
This looks simpler, a lot smoother on my machine, and shouldn't cause
content resizes. It also doesn't set custom properties on the root which
causes an expensive restyle, specially on big documents (like with many
tabs open).

Maybe eventually we can use view transitions for this, seems like a good
use-case.

We need to move the background to `#sidebar-main` rather than the
wrapper because during the shrinking animation the wrapper is small and
the `#sidebar-main` element would be transparent, which we don't want.

Differential Revision: https://phabricator.services.mozilla.com/D220846
2024-09-12 10:02:04 +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
Micah Tigley
a22f833a97 Bug 1917709 - Rename megalist pref to contextual-password-manager. r=issammani,rsafaeian,firefox-desktop-core-reviewers ,sidebar-reviewers,dao,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D221554
2024-09-11 16:02:02 +00:00
Tamas Szentpeteri
eba01497a5 Backed out 2 changesets (bug 1911626) for causing mochitest crashes on browser_view_sidebar_menu.js (finished). CLOSED TREE
Backed out changeset ed0f57c2d2af (bug 1911626)
Backed out changeset 2ee9263eea02 (bug 1911626)
2024-09-11 02:33:31 +03:00
Sammy Khamis
86ed2fd87f Bug 1911626: Add closing tabs remotely to sidebar right click menu r=lina,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,sidebar-reviewers,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D220653
2024-09-10 20:25:48 +00:00
Sammy Khamis
adb6977d3c Bug 1911626: Add closing tabs remotely to sidebar r=markh,lina,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,sync-reviewers,sidebar-reviewers,dao,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D218902
2024-09-10 20:25:47 +00:00
Emilio Cobos Álvarez
9446a90291 Bug 1917557 - Make sidebar box and background more consistent between windows system theme and non-system themes. r=sidebar-reviewers,desktop-theme-reviewers,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D221451
2024-09-09 13:44:42 +00:00
Dave Townsend
c88e214a59 Bug 1916961: Right clicking in the vertical tabs sidebar should show the tabs context menu. r=sidebar-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D221129
2024-09-05 16:32:59 +00:00
Tamas Szentpeteri
6c877ec7e8 Backed out changeset 3423c859c8be (bug 1916961) for causing mochitest failures on browser_UsageTelemetry_toolbars.js. CLOSED TREE 2024-09-05 18:30:38 +03:00
Dave Townsend
59044cc9ba Bug 1916961: Right clicking in the vertical tabs sidebar should show the tabs context menu. r=sidebar-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D221129
2024-09-05 14:16:37 +00:00
Stuart Colville
6794562be2 Bug 1916182 - Move to listening to events for sidebar history and sync tab searchbox focus r=sidebar-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D220901
2024-09-05 13:36:37 +00:00
Jonathan Sudiaman
ac46800599 Bug 1916025 - Ensure that browser_history_sidebar uses dates within the 60-day limit. r=sidebar-reviewers,Gijs
On dates like August 31st, in order to create a "Last Month" card, we should use a date near the *end* of the previous month - rather than the beginning - in order to avoid exceeding 60 days of history. (At some point, we can hopefully expand or remove that limit.)

Differential Revision: https://phabricator.services.mozilla.com/D220920
2024-09-04 16:26:01 +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
Cristina Horotan
642444af1a Backed out changeset d2fdb97d5f1c (bug 1911626) for causing bc failures at browser_firefoxview_search_telemetry.js 2024-09-04 05:32:22 +03:00
Sammy Khamis
918abfd86c Bug 1911626: Add closing tabs remotely to sidebar r=markh,lina,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,sync-reviewers,sidebar-reviewers,dao,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D218902
2024-09-04 00:48:53 +00: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
Emilio Cobos Álvarez
8f0b91042d Bug 1916101 - Make the fix to bug 1915664 apply to Linux too. r=dao,desktop-theme-reviewers
This is also simpler because it makes various pref checks unneeded
(since browser-custom-colors.css gets loaded after this stylesheet).

Differential Revision: https://phabricator.services.mozilla.com/D220771
2024-09-03 10:38:17 +00:00
Ed Lee
d1d69b2d3a Bug 1895932 - Add sidebar prefs to nimbus r=sidebar-reviewers,Gijs,sclements
Add new SidebarManager singleton with init on import that allows setting user branch prefs specified in the nimbus variable for sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D219903
2024-09-02 22:43:28 +00:00
Emilio Cobos Álvarez
f7551929f8 Bug 1916098 - Remove appcontent box. r=dao,desktop-theme-reviewers,devtools-reviewers,tabbrowser-reviewers,nchevobbe
gNotificationBox doesn't go there anymore (it goes inside the toolbox),
so we have really no use for that.

Simplify how the devtools theme is set on the browser, so that it is set
on the root.

Differential Revision: https://phabricator.services.mozilla.com/D220769
2024-09-02 13:47:45 +00:00
Kelly Cochrane
86f229c8a5 Bug 1915821 - Remove all screenshots after sidebar expand/collapse animation r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D220736
2024-08-31 13:16:48 +00:00
Cosmin Sabou
0962fc1955 Bug 1916025 - Temporarily disable browser_history_sidebar.js for permafailing until a fix is in place. a=test-only 2024-08-31 14:58:50 +03:00
Kelly Cochrane
fceef0f8b6 Bug 1915232 - Fix for sidebar toolbar button inverted state r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D220735
2024-08-30 19:45:30 +00:00
Stanca Serban
37b5e2bd39 Backed out changeset f20f138ea4ac (bug 1915232) for causing mochitests failures in browser_history_sidebar.js. CLOSED TREE 2024-08-31 03:31:19 +03:00
Stanca Serban
1466a02554 Backed out changeset 8b97e9376724 (bug 1915821) for causing OS X mochitests failures in browser_toolbarButtonKeyPress.js. CLOSED TREE 2024-08-31 02:32:35 +03:00
Kelly Cochrane
0372b26dea Bug 1915232 - Fix for sidebar toolbar button inverted state r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D220735
2024-08-30 19:45:30 +00:00
Kelly Cochrane
1e5899abe1 Bug 1915821 - Remove all screenshots after sidebar expand/collapse animation r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D220736
2024-08-30 19:45:09 +00:00
Nikki Sharpley
d95eb6c6ea Bug 1915664 - Update --toolbar-non-lwt-bgcolor for sidebar if using macOS theme. r=sidebar-reviewers,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D220586
2024-08-30 16:01:54 +00:00
Dave Townsend
76fee57fc7 Bug 1915111: Double clicking in the vertical tab strip should open a new tab. r=desktop-theme-reviewers,tabbrowser-reviewers,sclements,dao
This solves two problems. First we must make the tabbrowser-tabs instance
fill the remaining space in the sidebar while at the moment it is constrained
to the height of the tabs. Then we allow the double click event to be
handled when vertical tabs and tabs in titlebar are enabled.

Differential Revision: https://phabricator.services.mozilla.com/D220269
2024-08-30 08:20:47 +00:00
Ed Lee
857840a797 Bug 1915335 - Display sidebar tool pref changes in existing windows r=sidebar-reviewers,jsudiaman
Detect pref change to refresh disabled state to update if any changed.

Differential Revision: https://phabricator.services.mozilla.com/D220370
2024-08-29 00:52:13 +00:00
Luca Greco
0d6b227db3 Bug 1910581 - Context menu doesn't respect the add-on permissions/prefs. r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D220397
2024-08-28 17:08:46 +00:00
Nikki Sharpley
23a3a4bedd Bug 1910733 - Update content area and sidebar panel to have a border and box shadow. r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,sclements
In Bug 1886847, there was a discussion on how best to separate chrome from content
from chrome whilst remaining true to the new look. We landed on usiong both a box
shadow and border.

Differential Revision: https://phabricator.services.mozilla.com/D218126
2024-08-27 17:30:45 +00:00
Sam Foster
231863194c Bug 1913779 - Check if initial history cache entries are available before rendering the history sidebar. r=jsudiaman,sidebar-reviewers,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220198
2024-08-27 17:14:30 +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
Norisz Fay
a1d50a6697 Backed out changeset c540259f992c (bug 1913157) for causing bc failure on browser_sidebar_prefs.js CLOSED TREE 2024-08-27 17:31:26 +03:00
Kelly Cochrane
448c1dcaf6 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 13:08:12 +00:00
Stanca Serban
b510ddab85 Backed out changeset c396d64a9406 (bug 1910733) for causing mochitests failures in browser_keyboard_tests.js. 2024-08-27 00:04:18 +03:00
Kelly Cochrane
9600083d6c Bug 1898251 - Add animations for sidebar 'launcher' in 'Always show' mode r=desktop-theme-reviewers,reusable-components-reviewers,sidebar-reviewers,dao,hjones,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D215520
2024-08-26 19:16:07 +00:00
Nikki Sharpley
a5e656c96d Bug 1910733 - Update content area and sidebar panel to have a border and box shadow. r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,sclements
In Bug 1886847, there was a discussion on how best to separate chrome from content
from chrome whilst remaining true to the new look. We landed on usiong both a box
shadow and border.

Differential Revision: https://phabricator.services.mozilla.com/D218126
2024-08-26 19:06:51 +00:00
Jonathan Sudiaman
6956de950e Bug 1911068 - Utilize expanded attribute on History and Sync Tabs cards r=sidebar-reviewers,nsharpley
In history, when sorting by date, expand the first couple of cards. For all other cases, expand all cards.

Differential Revision: https://phabricator.services.mozilla.com/D219983
2024-08-26 18:56:18 +00:00
Nikki Sharpley
52f1cd691f Bug 1914455 - Remove "order" from sidebar SessionStore data r=sidebar-reviewers,sessionstore-reviewers,dao,kcochrane
We can rely on the global pref for this. `setPosition` in `browswer-sidebar.js` looks
at the pref `sidebar-position_start` to determine "order" on `init` and on `reversePosition`

Differential Revision: https://phabricator.services.mozilla.com/D219906
2024-08-26 15:05:15 +00:00
Tamas Szentpeteri
db26c1b7f0 Backed out changeset 4270bbbfb92d (bug 1898251) for causing frequent marionette failures on test_restore_sidebar.py. CLOSED TREE 2024-08-24 00:24:39 +03:00
Kelly Cochrane
9c271bfe95 Bug 1898251 - Add animations for sidebar 'launcher' in 'Always show' mode r=desktop-theme-reviewers,reusable-components-reviewers,sidebar-reviewers,dao,hjones,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D215520
2024-08-23 15:56:40 +00:00
Iulian Moraru
6a5418ae50 Backed out changeset 0df1c4dc3e1e (bug 1898251) for causing marionette failures related to always_show. CLOSED TREE 2024-08-22 23:59:31 +03:00
Kelly Cochrane
19636d4e59 Bug 1898251 - Add animations for sidebar 'launcher' in 'Always show' mode r=desktop-theme-reviewers,reusable-components-reviewers,sidebar-reviewers,dao,hjones,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D215520
2024-08-22 17:26:03 +00:00
Jonathan Sudiaman
0091e139e7 Bug 1909704 - Add three-dot menu to history and right-click menu for history and synced tabs r=sidebar-reviewers,fluent-reviewers,fxview-reviewers,nsharpley,sclements
- Custom right-click menu for History and Synced Tabs.
- Three dot menu for changing sort option and clearing history.
- Tests for Synced Tabs and right-click menu in History.

Differential Revision: https://phabricator.services.mozilla.com/D218741
2024-08-22 15:19:02 +00:00
Nikki Sharpley
31a3828fed Bug 1913906 - Fix history empty state image r=sidebar-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D219776
2024-08-22 12:12:46 +00:00
Stuart Colville
67cd79d978 Bug 1912562 - add autofocus to searchbox component and use in sidebar history and synctabs r=sidebar-reviewers,fxview-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D219617
2024-08-21 12:33:17 +00:00