Commit Graph

435 Commits

Author SHA1 Message Date
Sandor Molnar
7599f7c3a6 Backed out changeset ef1b42c36db7 (bug 1902056) for causing perma bc failures @ browser_toolbarKeyNav.js CLOSED TREE 2024-09-25 14:07:40 +03:00
Fred Chasen
a31102ffc2 Bug 1919166 - Prevent registering review checker sidebar panel for private windows. r=shopping-reviewers,sidebar-reviewers,kpatenio,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D222380
2024-09-24 22:00:18 +00:00
Jonathan Sudiaman
375579d22d Bug 1902056 - Update strings for Sidebar toolbarbutton, close button and Customize Sidebar visibility settings r=sidebar-reviewers,fluent-reviewers,sclements,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D223314
2024-09-24 20:00:26 +00:00
Stuart Colville
1e41e3c0d0 Bug 1919474: Fix sidebar panel titles r=sidebar-reviewers,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D222932
2024-09-23 10:00:06 +00:00
Kelly Cochrane
8cacd1c229 Bug 1906888 - Update focus order and move new tab button to the bottom for vertical tabs r=desktop-theme-reviewers,tabbrowser-reviewers,dao,sidebar-reviewers,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D221244
2024-09-20 11:40:04 +00:00
Fred Chasen
89e6d0b8cb Bug 1916017 - Add Review Checker as a sidebar tool. r=shopping-reviewers,fluent-reviewers,desktop-theme-reviewers,sidebar-reviewers,sclements,kpatenio
- Registers the a new review checker sidebar using `registerPrefSidebar` that will display if  `browser.shopping.experience2023.integratedSidebar` is enabled.
- Hides any open review checker sidebars if the pref changes.
- Adds `reviewchecker` to the sidebar revamp tools pref.

Note: this only adds the sidebar tool, it will not load anything as the actors aren't setup yet.

Differential Revision: https://phabricator.services.mozilla.com/D221362
2024-09-19 17:07:29 +00:00
Butkovits Atila
5a9a789f82 Backed out changeset fb2f7f9f6def (bug 1906888) for causing failures at browser_newtabButton.js. CLOSED TREE 2024-09-19 22:04:46 +03:00
Kelly Cochrane
a83714bc93 Bug 1906888 - Update focus order and move new tab button to the bottom for vertical tabs r=desktop-theme-reviewers,tabbrowser-reviewers,dao,sidebar-reviewers,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D221244
2024-09-19 15:54:02 +00:00
Jonathan Sudiaman
b8faa7e749 Bug 1919185 - Fix links and radio buttons that are failing Tier 2 a11y_checks for Customize Sidebar r=sidebar-reviewers,accessibility-frontend-reviewers,Gijs,Jamie
For extension links, AccessibilityUtils was checking the `<a>` element, rather than its container. Moving `tabIndex` over to the inner "link" seemed to remedy this.
For radio inputs, we should not be checking `tabIndex` as `<moz-radio-group>` only allows focus on the active radio option (by design).

Differential Revision: https://phabricator.services.mozilla.com/D222670
2024-09-19 14:42:45 +00:00
Emilio Cobos Álvarez
de32a21400 Bug 1919041 - Handle interrupting sidebar animation. r=sidebar-reviewers,kcochrane,sclements
Differential Revision: https://phabricator.services.mozilla.com/D222297
2024-09-17 17:03:39 +00:00
Jonathan Sudiaman
929dec8442 Bug 1919108: Temporary disable a11y_checks for browser_glean_sidebar.js. r=sidebar-reviewers,Gijs
Filed Bug 1919185 to address the failing tests. Skip them for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D222474
2024-09-17 16:44:01 +00:00
Dão Gottwald
23da2b3201 Bug 1918676 - Disable tab opening / closing animations and tab size locking in vertical mode, properly set --tab-min-width rather than overriding min-width in vertical mode, and restrict some styles to horizontal mode. r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,emilio,kcochrane,sclements,dwalker
Differential Revision: https://phabricator.services.mozilla.com/D222202
2024-09-17 08:21:24 +00:00
Noemi Erli
353976cead Backed out 2 changesets (bug 1918676, bug 1918638) for causing browser chrome failures
Backed out changeset c36ab1469893 (bug 1918638)
Backed out changeset f973faab6674 (bug 1918676)
2024-09-17 02:34:41 +03:00
Dão Gottwald
2b53d56022 Bug 1918676 - Disable tab opening / closing animations and tab size locking in vertical mode, properly set --tab-min-width rather than overriding min-width in vertical mode, and restrict some styles to horizontal mode. r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,emilio,kcochrane,sclements,dwalker
Differential Revision: https://phabricator.services.mozilla.com/D222202
2024-09-16 19:53:42 +00:00
Stuart Colville
43ffcfbd99 Bug 1918132 - Improve searchbox focus tests and add test ensuring focus still works when waiting on history r=sidebar-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D222169
2024-09-16 16:27:24 +00:00
Jonathan Sudiaman
15ad15eecf Bug 1898250 - Add telemetry to sidebar r=sidebar-reviewers,fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D220720
2024-09-16 15:42:48 +00:00
Emilio Cobos Álvarez
2b868a8902 Bug 1918765 - Use ease-in-out easing for sidebar animation. r=sidebar-reviewers,kcochrane
Restores the easing from before the new animation work.

Differential Revision: https://phabricator.services.mozilla.com/D222185
2024-09-14 23:13:39 +00:00
Kelly Cochrane
16d633fe66 Bug 1911889 - Update tab mute/soundplaying/activemedia-blocked icon styling r=desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,nsharpley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D219495
2024-09-13 17:51:03 +00:00
Iulian Moraru
2e1e9ca43c Backed out changeset e6b82ff4e092 (bug 1911889) for causing bc failures on browser_tabIconOverlayPiP.js. CLOSED TREE 2024-09-13 19:14:13 +03:00
Kelly Cochrane
744bb885ad Bug 1911889 - Update tab mute/soundplaying/activemedia-blocked icon styling r=desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,nsharpley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D219495
2024-09-13 14:46:04 +00:00
Emilio Cobos Álvarez
37ac56fd75 Bug 1918371 - Centralize browser colors, and import them from sidebar panels. r=desktop-theme-reviewers,sidebar-reviewers,tabbrowser-reviewers,nsharpley,dao
Not sure if this is better but this solves the issue of having to
duplicate the custom colors stuff to keep them in sync... Thoughts?

Differential Revision: https://phabricator.services.mozilla.com/D221963
2024-09-13 10:03:06 +00:00
Emilio Cobos Álvarez
21a9a793f8 Bug 1918371 - Use browser-custom-colors.css background if appropriate. r=desktop-theme-reviewers,dao
Remove the sidebar-border variable because it's unused (and it's not one
of the properties that get plumbed down anyways).

Rely on browser.xhtml's background to avoid having to plumb down the
system theme colors. Alternatively we could try to plumb these down, or
add a media query like:

```
@media not ((prefers-contrast) or (-moz-platform: linux) or ((-moz-platform: macos) and (-moz-bool-pref: "browser.theme.macos.native-theme"))) {
  /* Duplicate browser-custom-colors.css */
}
```

But that's kind of unwieldy, to the point that we should move
browser-custom-colors.css import to browser-shared and use the same if
we do it, probably, so it's easy to keep them in sync...

Differential Revision: https://phabricator.services.mozilla.com/D221962
2024-09-13 10:03:05 +00:00
Sammy Khamis
664da6aa2d Bug 1911626: Add closing tabs remotely to sidebar right click menu r=lina,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,sidebar-reviewers,dao,sclements,sync-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220653
2024-09-13 09:26:19 +00:00
Sammy Khamis
8978600c7e 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-13 09:26:19 +00:00
Emilio Cobos Álvarez
3e676b7e1d Bug 1915230 - Make animation and duration configurable. r=#sidebar-reviewers CLOSED TREE
And tweak the default duration as per UX feedback.

Differential Revision: https://phabricator.services.mozilla.com/D221718

Depends on D221351
2024-09-12 19:14:23 +00:00
Emilio Cobos Álvarez
6bb5f60b53 Bug 1915230 - Use a translate transform only. r=#sidebar-reviewers!,mstange
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

Depends on D220846
2024-09-12 10:02:04 +00:00
Emilio Cobos Álvarez
39dbb62d25 Bug 1915230 - Make sidebar animation use transforms. r=#sidebar-reviewers!,mconley!,dao!
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
Stuart Colville
7e5e623565 Bug 1917563 - fix focus in sidebar history when history data is pending r=sidebar-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D221530
2024-09-12 16:01:16 +00:00
Butkovits Atila
1a38648aa0 Backed out 3 changesets (bug 1915230) for causing failures at test_restore_sidebar.py. CLOSED TREE
Backed out changeset 05fe9b71651f (bug 1915230)
Backed out changeset 749011ce7a8a (bug 1915230)
Backed out changeset aaaae84198ae (bug 1915230)
2024-09-12 19:12:43 +03:00
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