Commit Graph

193 Commits

Author SHA1 Message Date
Sam Foster
33db87f9be Bug 1922898 - Correct inactive titlebar color in linux; ensure titlebar toolbars get the browser-titlebar class. r=desktop-theme-reviewers,dao,tabbrowser-reviewers
- Remove the titlebar-color class which is now redundant with browser-titlebar
- Fix the specificity in the linux stylesheet ensuring titlebar toolbars show the theme's background images not the falback colors

Differential Revision: https://phabricator.services.mozilla.com/D224862
2024-10-10 17:28:23 +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
Tom Schuster
202ab5bf0c Bug 1912403 - Remove inline drag-and-drop handlers from navigator-toolbox. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D220795
2024-10-07 11:50:08 +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
Tom Schuster
8e429f9592 Bug 1912403 - Remove the remaining inline keypress handlers from navigator-toolbox. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219979
2024-10-02 07:58:42 +00:00
Tom Schuster
70465607e1 Bug 1912403 - Remove the remaining inline click (and associated keypress) handlers from navigator-toolbox. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D221001
2024-10-02 07:58:42 +00:00
Tom Schuster
bbae806c40 Bug 1912403 - Remove inline click handlers from navigator-toolbox that react to tab navigation. r=pip-reviewers,tabbrowser-reviewers,mconley,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D220817
2024-10-02 07:58:41 +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
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
Sarah Clements
bc1fc56f49 Bug 1921336 - Remove focus from vertical-pinned-tabs-container r=tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D224224
2024-10-01 13:58:09 +00:00
Tom Schuster
45ba41085f Bug 1912403 - Remove inline mousedown handlers from navigator-toolbox. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D221479
2024-10-01 10:26:38 +00:00
Tom Schuster
3fd6339b81 Bug 1912403 - Remove inline command handlers from navigator-toolbox. r=Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D221301
2024-10-01 10:26:37 +00:00
Tom Schuster
032187cf84 Bug 1912403 - Remove inline popshowing events handlers from navigator-toolbox. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219428
2024-10-01 10:26:36 +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
Mark Striemer
7a4503972d Bug 1910358 - Unify tab and button sizes in sidebar r=sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,sclements,nsharpley
Also move sidebar padding into tabs from the container, show scrollbar
gutter with non-overlay scrollbars, prevent icon shifting when expanding
the sidebar, avoid cropping tab background shadows.

Co-authored-by: Tim Giles <tgiles@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D222659
2024-09-27 15:19:32 +00:00
James Teow
728cf35f79 Bug 1915273 - Allow revert button to always show until search terms change and fix keyboard focus - r=adw,desktop-theme-reviewers,urlbar-reviewers,dao
The main purpose of this patch is to make the visibility of the revert button consistent to make it more accessible. After talking with Josh, we agreed the revert icon should always show in an `invalid` pageproxystate until `userTypedValue` differs from the search string. Doing so will make the Revert button be more predictable for keyboard users instead of hiding it when the input field is focused and then showing it again when they press tab (or not making it focusable at all).

The Go button (the right arrow button) will show up again once the user has modified the search terms. I didn't think this would be much of an issue since the Go arrow is not focusable by keyboard, it's not visible when the address bar is not focused, and "Enter" is a well known shortcut to doing the same function.

This involved checking when `persistsearchterms` was changed to `false` and removing it to instead remove `persistsearchterms` when the search terms changed. This is reflected in the new expected behavior in the tests.

One issue was adding `focus` to the revert button via CSS caused focus issues. Tabbing from the left elements (reload button) to the input would skip the input altogether and go straight to the revert button and then to the Save to Pocket button. Pressing shift + tab to try and go back from the revert button to the input would get stuck in a loop between the input field and revert button. This was fixed with `<toolbartabstop/>` . I created a hideable container to ensure the tabstop only exists when the `persistsearchterms` state is active. And the new test checks that the tab behaviour is consistent.

Lastly, because keyboard users might press the Revert button, focusing the input seemed like a logical choice, or else when the focus is lost the user would need to tab all the way back to the input to do more actions. There is also an initiative to move inline Javascript out from markup.

Differential Revision: https://phabricator.services.mozilla.com/D223423
2024-09-25 22:07:11 +00:00
Sandor Molnar
66bf6a75d0 Backed out changeset e2ea6ce650da (bug 1912403) because "Items pinned to the overflow menu are broken". CLOSED TREE 2024-09-25 13:16:37 +03:00
Sandor Molnar
5868fb7220 Backed out changeset 124bf1423a9c (bug 1912403) because "Items pinned to the overflow menu are broken" CLOSED TREE 2024-09-25 12:58:42 +03:00
Tom Schuster
4e06b6ddc6 Bug 1912403 - Remove inline command handlers from navigator-toolbox. r=Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D221301
2024-09-25 07:16:43 +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
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
Gijs Kruitbosch
d4b4962785 Bug 1913704 - remove pioneer/ion now that it's been retired, r=rhelmer,chutten,firefox-desktop-core-reviewers ,extension-reviewers,desktop-theme-reviewers,emilio,mossop,robwu
Differential Revision: https://phabricator.services.mozilla.com/D220751
2024-09-19 13:32:22 +00:00
James Teow
d5710cd89a Bug 1919193 - Simplify Persisted Search UI - r=adw,desktop-theme-reviewers,urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D222489
2024-09-18 04:44:31 +00:00
Dale Harvey
e230b4cd2c Bug 1917186 - Escape searchMode when uses presses Esc. r=daisuke,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D221800
2024-09-13 20:27:31 +00:00
Daisuke Akatsuka
1dd2731973 Bug 1914605: Define tooltip for search mode exit button r=daleharvey,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D221092
2024-09-10 20:43:36 +00:00
Sarah Clements
00d0b28ceb Bug 1913279 - Fix vertical tabs issue with selected tab not scrolling on overflow r=tabbrowser-reviewers,desktop-theme-reviewers,dao
* Remove condition in tabs.js that prohibited overflow attribute being added for vertical orientation
* Remove redundant overflow-y:auto for #tabbrowser-arrowscrollbox and set a min-height for vertical tabs

Differential Revision: https://phabricator.services.mozilla.com/D221133
2024-09-09 13:49:26 +00:00
Dão Gottwald
06e952e673 Bug 1916941 - Vertical new tab button cleanup. r=desktop-theme-reviewers,sidebar-reviewers,kcochrane
Details in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D221117
2024-09-06 14:04:43 +00:00
Tom Schuster
776e1d27ea Bug 1912403 - Remove inline popshowing events handlers from navigator-toolbox. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219428
2024-09-04 07:02:42 +00:00
Emilio Cobos Álvarez
b5cc0dcae9 Bug 1913322 - Make arrowscrollbox use resizeobserver rather than overflow/underflow events. r=Gijs,dao,desktop-theme-reviewers,tabbrowser-reviewers,frontend-codestyle-reviewers
For that, make the <slot> have a box. Keep firing the overflow /
underflow events, but only in cases relative to the arrowScrollbox.

Remove unneeded scrollbox-clip box, and replace it by
`overflow-clip-box-block: content-box` in the only place that we make
the scrollbox grow.

Differential Revision: https://phabricator.services.mozilla.com/D219249
2024-08-21 12:23:34 +00:00
Cristian Tuns
8914d54c72 Backed out changeset 6fb2cecebdd8 (bug 1913322) for causing multiple failures. CLOSED TREE 2024-08-20 21:01:50 -04:00
Emilio Cobos Álvarez
02bec8c38e Bug 1913322 - Make arrowscrollbox use resizeobserver rather than overflow/underflow events. r=Gijs,dao,desktop-theme-reviewers,tabbrowser-reviewers,frontend-codestyle-reviewers
For that, make the <slot> have a box. Keep firing the overflow /
underflow events, but only in cases relative to the arrowScrollbox.

Remove unneeded scrollbox-clip box, and replace it by
`overflow-clip-box-block: content-box` in the only place that we make
the scrollbox grow.

Differential Revision: https://phabricator.services.mozilla.com/D219249
2024-08-20 22:31:22 +00:00
Iulian Moraru
cd76550840 Backed out changeset 1658290c1b95 (bug 1913322) for causing overflow related failures. CLOSED TREE 2024-08-20 17:54:54 +03:00
Emilio Cobos Álvarez
cb06f25a7a Bug 1913322 - Make arrowscrollbox use resizeobserver rather than overflow/underflow events. r=Gijs,dao,desktop-theme-reviewers,tabbrowser-reviewers,frontend-codestyle-reviewers
For that, make the <slot> have a box. Keep firing the overflow /
underflow events, but only in cases relative to the arrowScrollbox.

Remove unneeded scrollbox-clip box, and replace it by
`overflow-clip-box-block: content-box` in the only place that we make
the scrollbox grow.

Differential Revision: https://phabricator.services.mozilla.com/D219249
2024-08-20 12:58:16 +00:00
James Teow
f903e4c61a Bug 1901871 - Part 1: Integrate Persisted Search Terms with the Unified Search Button - r=daleharvey,adw,fluent-reviewers,desktop-theme-reviewers,urlbar-reviewers,dao
The design: https://www.figma.com/design/4co0kOw3eJMQK3HRpTuD1b/Unified-search-button?node-id=54-39399&t=mkuI12rU1RQ3Cdke-0

Differential Revision: https://phabricator.services.mozilla.com/D215993
2024-08-15 11:12:10 +00:00
Dale Harvey
f9ca64ed89 Bug 1902052 - Ensure SearchModeSwitcher can be accessed via keyboard r=urlbar-reviewers,fluent-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D216113
2024-08-05 16:49:34 +00:00
Sarah Clements
7ea40f53e4 Bug 1899336 - Position pinned tabs and new tab button for vertical tabs mode r=dao,sidebar-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,kcochrane
* Create a new container to house pinned tabs, new tab button and non-pinned tabs
* Create new pinned tabs container to apply grid layout and overflow scrolling
* Update test coverage for pinned tabs for both horizontal and vertical tabs

Differential Revision: https://phabricator.services.mozilla.com/D215482
2024-07-29 11:30:37 +00:00
Dale Harvey
0c3d03e94d Bug 1905510 - Ensure SearchModeSwitcher popup opens in correct window. r=urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D215311
2024-07-19 21:43:39 +00:00
Dale Harvey
3a3707ff44 Bug 1891863 - Implement initial prototype of dedicated search button. r=dao,fluent-reviewers,desktop-theme-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D209469
2024-06-12 13:14:14 +00:00
Dão Gottwald
83e03babf4 Bug 1900851 - Remove rule for hiding extension toolbars in popup windows. r=Gijs
This goes back to bug 258405. WebExtensions can't add toolbars, so this rule shouldn't be needed anymore.

Differential Revision: https://phabricator.services.mozilla.com/D212724
2024-06-10 15:08:00 +00:00
Dão Gottwald
a546491d4a Bug 1900842 - Consolidate #nav-bar-overflow-button styling and move it to toolbarbuttons.css. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D212720
2024-06-06 14:31:05 +00:00
acseh
b6a31e8a4d Backed out 2 changesets (bug 1900842, bug 1900851) for causing mochitest failures on test_queryCaretRect.html CLOSED TREE
Backed out changeset 2dfc1c304ec4 (bug 1900851)
Backed out changeset 6934133fea44 (bug 1900842)
2024-06-06 16:15:22 +03:00
Dão Gottwald
610eed64a4 Bug 1900842 - Consolidate #nav-bar-overflow-button styling and move it to toolbarbuttons.css. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D212720
2024-06-06 11:51:00 +00:00
Moritz Beier
0dcee9a58f Bug 1610530 - Use classes instead of ids to access urlbar elements from UrlbarInput. r=dao,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D212095
2024-06-04 12:58:52 +00:00
Emilio Cobos Álvarez
9ebe58a02d Bug 1896330 - Remove plain class from labels. r=dao,desktop-theme-reviewers
They only reset a margin, so let's do that explicitly instead.

Differential Revision: https://phabricator.services.mozilla.com/D210149
2024-05-13 14:14:45 +00:00