Commit Graph

82 Commits

Author SHA1 Message Date
Natalia Csoregi
d58e17e441 Backed out changeset 8eb0f2e49298 (bug 1811321) for causing failures due to unreferenced file pictureInPicturePanel.xhtml. CLOSED TREE 2023-05-16 18:50:19 +03:00
Niklas Baumgardner
6cad90a4f4 Bug 1811321 - Create PiP panel for disablePiP. r=pip-reviewers,fluent-reviewers,desktop-theme-reviewers,flod,dao,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D175048
2023-05-16 14:04:14 +00:00
William Durand
df4f375b85 Bug 1805924 - Allow to re-order the list of extensions in the unified extensions panel. r=rpl,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D175348
2023-05-04 06:11:44 +00:00
Emilio Cobos Álvarez
7b99f3eb89 Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-20 21:14:07 +00:00
Cristina Horotan
1f70ff41ad Backed out changeset fcd3e501bdac (bug 1828477) for causing gv-junit failures. CLOSED TREE 2023-04-19 17:28:42 +03:00
Emilio Cobos Álvarez
2290a1d8e2 Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-19 11:15:08 +00:00
Natalia Csoregi
34a8f8c95d Backed out changeset 8abb5d78b663 (bug 1828477) for causing multiple failures e.g gv-junit on emptyShareReturnsTypeError. CLOSED TREE 2023-04-18 22:27:29 +03:00
Emilio Cobos Álvarez
df2c483941 Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-18 17:35:48 +00:00
Greg Tatum
f97f548dd3 Bug 1826437 - Implement the full page translations panel; r=nordzilla,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D174682
2023-04-12 16:13:24 +00:00
Emilio Cobos Álvarez
4125fc5ff8 Bug 1821412 - Remove previously-ineffective align attribute. r=dholbert
The stack we're on was a grid, so align/justify props work now, but
-moz-box-* properties didn't use to.

Differential Revision: https://phabricator.services.mozilla.com/D172160
2023-03-09 19:06:30 +00:00
Mark Hammond
9a080f909e Bug 1359861 - allow reader-mode tabs to be shared. r=Gijs,skhamis
Differential Revision: https://phabricator.services.mozilla.com/D170186
2023-02-22 03:58:11 +00:00
Norisz Fay
d30055eea6 Backed out changeset d82c03e04249 (bug 1359861) for causing xpcshell failure on test_BrowserUtils.js CLOSED TREE 2023-02-22 00:05:07 +02:00
Mark Hammond
9ef3fc0513 Bug 1359861 - allow reader-mode tabs to be shared. r=Gijs,skhamis
Differential Revision: https://phabricator.services.mozilla.com/D170186
2023-02-21 21:04:10 +00:00
Emilio Cobos Álvarez
e8428d2362 Bug 1812041 - Don't deactivate main browser when moving focus to datetime picker panel. r=emilio,mconley,kcochrane
Ensuring that the date input within a main browser is not loosing focus when its associate date picker panel is opened and that the focus is udpated accordingly when it is closed (main part of the patch was crafted by Emilio, tests are added by ayeddi).

Differential Revision: https://phabricator.services.mozilla.com/D167698
2023-02-14 17:52:12 +00:00
Hiroyuki Ikezoe
869ec53392 Bug 1799563 - Refresh swipe-to-navigation UX. r=mconley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D164271
2023-01-20 00:05:25 +00:00
Anna Yeddi
80836b3556 Bug 1801930 - Use Escape to close month-year panel only. r=Jamie
For `<input type=date>` and `<input type=datetime-local>`, when a month-year selection dialog is opened from the datepicker/calendar dialog, `Escape` now would only close the month-year selection panel and would keep the datepicker open, returning the focus to the focusable day/gridcell on the calendar grid.

Differential Revision: https://phabricator.services.mozilla.com/D165117
2022-12-21 17:52:45 +00:00
Anna Yeddi
d70fb373ad Bug 1676068 - Datepicker Pt.4 - Update keyboard support for a DateTimePicker. r=Jamie,mconley,kcochrane
Done:
- Provide the [ARIA Date picker dialog](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) keyboard navigation pattern
- Manage tab order of a daysView to prevent keyboard trap within a datepicker dialog
- Update default behavior on Datepicker's `this._closePopup()` method
- Spinner styling updated to provide appropriate focus indication when navigating with a keyboard
- Added functional and markup tests to ensure keyboard navigation is supported as expected, split existent datepicker tests to avoid test timeouts and provide better grouping and readability

Depends on D141175

Differential Revision: https://phabricator.services.mozilla.com/D142743
2022-12-07 00:56:46 +00:00
Marian-Vasile Laza
55672eda4a Backed out 7 changesets (bug 1676068) for causing geckoview junit failures. CLOSED TREE
Backed out changeset d3c9e777a050 (bug 1676068)
Backed out changeset 639c9661c850 (bug 1676068)
Backed out changeset d06b6aa3b9a3 (bug 1676068)
Backed out changeset 50bb7e9c6bcf (bug 1676068)
Backed out changeset 234acd14548e (bug 1676068)
Backed out changeset 04050cfd5e3f (bug 1676068)
Backed out changeset a06081c85646 (bug 1676068)
2022-12-06 07:20:40 +02:00
Anna Yeddi
3a29d03994 Bug 1676068 - Datepicker Pt.4 - Update keyboard support for a DateTimePicker. r=Jamie,mconley,kcochrane
Done:
- Provide the [ARIA Date picker dialog](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) keyboard navigation pattern
- Manage tab order of a daysView to prevent keyboard trap within a datepicker dialog
- Update default behavior on Datepicker's `this._closePopup()` method
- Spinner styling updated to provide appropriate focus indication when navigating with a keyboard
- Added functional and markup tests to ensure keyboard navigation is supported as expected, split existent datepicker tests to avoid test timeouts and provide better grouping and readability

Depends on D141175

Differential Revision: https://phabricator.services.mozilla.com/D142743
2022-12-06 03:18:26 +00:00
Cristian Tuns
0a87ef3aaf Backed out 4 changesets (bug 1676068) for causing geckoview failures CLOSED TREE
Backed out changeset ee747c27b9bc (bug 1676068)
Backed out changeset 0876924c66e8 (bug 1676068)
Backed out changeset 30a8292a37ae (bug 1676068)
Backed out changeset 19a0b7a0987c (bug 1676068)
2022-12-01 19:44:47 -05:00
Anna Yeddi
5164d63bd2 Bug 1676068 - Datepicker Pt.4 - Update keyboard support for a DateTimePicker. r=Jamie,mconley,kcochrane
Done:
- Provide the [ARIA Date picker dialog](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) keyboard navigation pattern
- Manage tab order of a daysView to prevent keyboard trap within a datepicker dialog
- Update default behavior on Datepicker's `this._closePopup()` method
- Spinner styling updated to provide appropriate focus indication when navigating with a keyboard
- Added functional and markup tests to ensure keyboard navigation is supported as expected, split existent datepicker tests to avoid test timeouts and provide better grouping and readability

Depends on D141175

Differential Revision: https://phabricator.services.mozilla.com/D142743
2022-12-01 22:35:08 +00:00
Cristian Tuns
2aa1f4aa60 Backed out 4 changesets (bug 1676068) for causing mochitest failures CLOSED TREE
Backed out changeset 3e8b24890eb2 (bug 1676068)
Backed out changeset 7ba99b58ac35 (bug 1676068)
Backed out changeset fc1c62ea6542 (bug 1676068)
Backed out changeset ca2fed771557 (bug 1676068)
2022-12-01 15:48:37 -05:00
Anna Yeddi
cb8e87517e Bug 1676068 - Datepicker Pt.4 - Update keyboard support for a DateTimePicker. r=Jamie,mconley,kcochrane
Done:
- Provide the [ARIA Date picker dialog](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) keyboard navigation pattern
- Manage tab order of a daysView to prevent keyboard trap within a datepicker dialog
- Update default behavior on Datepicker's `this._closePopup()` method
- Spinner styling updated to provide appropriate focus indication when navigating with a keyboard
- Added functional and markup tests to ensure keyboard navigation is supported as expected, split existent datepicker tests to avoid test timeouts and provide better grouping and readability

Depends on D141175

Differential Revision: https://phabricator.services.mozilla.com/D142743
2022-12-01 19:50:03 +00:00
Niklas Baumgardner
7aed2f7632 Bug 1801193 - Focus panel buttons when screenshots UI is opened. r=sfoster,cmkm
Differential Revision: https://phabricator.services.mozilla.com/D162333
2022-12-01 15:14:21 +00:00
Stanca Serban
461a6c412e Backed out changeset 075348ac5873 (bug 1801193) for causing bc failures on browser_quickactions.js. CLOSED TREE 2022-11-23 00:48:13 +02:00
Niklas Baumgardner
b2e4bad28f Bug 1801193 - Focus panel buttons when screenshots UI is opened. r=sfoster,cmkm
Differential Revision: https://phabricator.services.mozilla.com/D162333
2022-11-22 21:02:29 +00:00
Stanca Serban
0659f59b13 Backed out changeset 3d00ac0e9b4e (bug 1801193) for causing bc failures on browser_screenshots_test_escape.js. CLOSED TREE 2022-11-22 22:34:14 +02:00
Niklas Baumgardner
651cfc15a0 Bug 1801193 - Focus panel buttons when screenshots UI is opened. r=sfoster,cmkm
Differential Revision: https://phabricator.services.mozilla.com/D162333
2022-11-22 19:41:12 +00:00
William Durand
dcbd751150 Bug 1801318 - Close context menu on command. r=mconley
This will force the panel to close when we click an item in the context
menu, without having to handle each menu item separately.

Differential Revision: https://phabricator.services.mozilla.com/D162424
2022-11-21 18:59:50 +00:00
Itiel
c5c7610894 Bug 1577257 - Share logic behind panel headers across the UI r=willdurand,Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D160972
2022-11-17 21:34:34 +00:00
Mike Conley
d4d3af9877 Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
2022-11-15 16:37:23 +00:00
Stanca Serban
7abed322ee Backed out 3 changesets (bug 1782203) for causing lint failures on browser_unified_extensions_overflowable_toolbar.js. CLOSED TREE
Backed out changeset 50e57afebed3 (bug 1782203)
Backed out changeset d17ea376ed45 (bug 1782203)
Backed out changeset e91d51f1ce90 (bug 1782203)
2022-11-15 17:42:22 +02:00
Mike Conley
55af77e9ed Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
2022-11-15 15:02:08 +00:00
Csoregi Natalia
1ce4bb73a7 Backed out 4 changesets (bug 1782203, bug 1777484) for failures on browser_unified_extensions_overflowable_toolbar.js. CLOSED TREE
Backed out changeset ae47d92443a7 (bug 1782203)
Backed out changeset 0c90b1d40e9f (bug 1782203)
Backed out changeset 4b4cae098ea0 (bug 1782203)
Backed out changeset 75eba3b7a626 (bug 1777484)
2022-11-15 03:06:21 +02:00
Mike Conley
70738f0144 Bug 1782203 - Add context menu items for pinning and unpinning addon buttons to the toolbar. r=willdurand,extension-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D161200
2022-11-14 22:41:09 +00:00
Emilio Cobos Álvarez
4f5d052050 Bug 1797432 - Use a block rather than a vbox for the places tooltip box. r=aminomancer,mossop
Until popups and tooltips are migrated off xul layout this keeps the
desired behavior.

Differential Revision: https://phabricator.services.mozilla.com/D160336
2022-10-26 15:15:43 +00:00
Emilio Cobos Álvarez
e4bcc13cb9 Bug 1789877 - Hide inactive statuspanel. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156921
2022-09-12 09:55:30 +00:00
Emilio Cobos Álvarez
a1107cbac0 Bug 1789892 - Simplify statuspanel a bit. r=dao
I'm a bit baffled about bug 1789877. My best theory so far is that we're
inserting the element a bit deeper in the DOM and that causes us to
reflow slightly more stuff when tab-switching, but...

In any case while going through the code the status panel can be
simplified a bit now, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D156876
2022-09-09 19:36:21 +00:00
Emilio Cobos Álvarez
abab9b2db7 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 20:26:29 +00:00
Butkovits Atila
e4a4a23311 Backed out changeset 368a7ce1b104 (bug 1788273) for causing failures at browser_recently_closed_tabs.js. CLOSED TREE 2022-09-02 16:35:55 +03:00
Emilio Cobos Álvarez
72c00adfaa Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 11:18:54 +00:00
Shane Hughes
509e6cf163 Bug 1783207 - Add ellipsis to some menu label strings. r=flod
The copy guidance recommends adding an ellipsis to the end of labels for
controls that require an additional step to complete the action
specified by the label. We have some menuitems and panel buttons that
open a bookmark dialog or the edit bookmark panel that don't have an
ellipsis, so add that. Also, the form "Bookmark this x" has been changed
to "Bookmark x" in menuitems. Also, there's a "Print Selection" menuitem
that needed an ellipsis. Thanks for the review!

Differential Revision: https://phabricator.services.mozilla.com/D154320
2022-08-11 17:48:11 +00:00
William Durand
9ea8c792f2 Bug 1782456 - Move unified extensions context menu to main popupset. r=rpl,Gijs
I noticed some missing context menu style when loading the context menu
from our own viewcache, which explains the difference between primary
and secondary button click. Not sure ecavtly what was missing as the
styles are all over the place.

The menu item actually works, the actions are called and for
checkbox-like menu items, the `checked` attribute is correctly set in
the "HTML". Also it looked like sub-menus weren't affected (e.g. Tree
Style Tab didn't have any issue).

While investigating, I also noticed that most (if not all) `menupopup`
elements are declared in the main popupset, so I tried to move the
unified extensions context menu to this main popupset and lazy-load the
l10n strings (similar to the toolbar context menu [1]).

That fixed the bug.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1609556

Differential Revision: https://phabricator.services.mozilla.com/D153330
2022-08-02 13:24:28 +00:00
Shane Hughes
1c74014dba Bug 1765625 - Update page action context menu. r=mconley,flod CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D152643
2022-07-27 03:09:51 -04:00
Cristian Tuns
199f035907 Backed out changeset 85594ddf4ab8 (bug 1765625) for causing mochitest faliures on browser_pdfjs_editing_contextmenu.js CLOSED TREE 2022-07-27 02:55:48 -04:00
Shane Hughes
288f9734c3 Bug 1765625 - Update page action context menu. r=mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D152643
2022-07-27 04:40:54 +00:00
Shane Hughes
d6138d8943 Bug 1779335 - Add new menu to Synced Tabs sidebar context. r=Gijs,fluent-reviewers
Add an "Open in New Container Tab" menu to the Synced Tabs sidebar
context menu, to match similar menus elsewhere in tab menus.

Differential Revision: https://phabricator.services.mozilla.com/D151777
2022-07-14 22:28:14 +00:00
Shane Hughes
9613adeb4a Bug 1779349 - Simplify Synced Tabs sidebar context l10n. r=Gijs,fluent-reviewers
Replace some fluent strings that cover the same ground as existing
strings that see more use. This will make the (English) diction more
consistent between the context menus.

Differential Revision: https://phabricator.services.mozilla.com/D151775
2022-07-14 22:28:14 +00:00
Emilio Cobos Álvarez
9f2d5720b9 Bug 1372276 - Remove HTML menuitem. r=smaug,mconley,agi
This removes HTMLMenuItemElement and all the code and tests preffed off
by dom.menuitem.enabled.

The HTML parser changes are the result of applying the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D149979
2022-06-22 22:31:42 +00:00
Emilio Cobos Álvarez
51af54fe65 Bug 1774378 - Make select code harder to mess up. r=Gijs
Right now we rely on the menulist to be injected by hand in all the
relevant windows. Instead create it lazily, making the select code more
standalone.

The DevTools window was missing it, for example.

Differential Revision: https://phabricator.services.mozilla.com/D149620
2022-06-21 21:42:58 +00:00