Enable native menus for content select on macOS
Categories
(Core :: Widget: Cocoa, enhancement)
Tracking
()
People
(Reporter: sam, Assigned: sam)
References
Details
Attachments
(1 file)
After bug 1710459, native menus are supported for content select menus on macOS behind the temporary pref widget.macos.native-anchored-select. The pref is disabled by default due to the additional tests that require modifications to pass with native menus for content select. Here I will attach the patch that fixes up the tests and enables native menus by default. A pref will remain for users who prefer the non-native implementation.
| Assignee | ||
Comment 1•5 months ago
|
||
After bug 1710459, native menus are supported for content select menus on macOS behind the pref widget.macos.native-anchored-select which is disabled by default. This patch makes the necessary changes to enable this by default:
- Tests involving content select have been updated to use more native-menu-friendly functions instead of synthesizing events where applicable. Tests which specifically test non-native menu behavior have been updated to disable native menus for content select.
- The pref
widget.macos.native-anchored-selecthas been renamed to be more accurate, as other prefs can cause native menus to be disabled too. Changes to the pref no longer require a browser restart, so the pref can be toggled during tests.
Updated•5 months ago
|
Updated•5 months ago
|
Comment 3•4 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 4•4 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: HTML <select> dropdowns now display as an OS-native menu on macOS, aligning their appearance and behavior with the rest of the system. Notably, scrolling works a bit differently in native menus, and longer menus may display more options at a time, improving usability. The previous behavior can be restored by disabling widget.macos.allow-native-select.
[Affects Firefox for Android]: No
[Suggested wording]: HTML <select> dropdowns now display as an OS-native menu on macOS, aligning their appearance and behavior with the rest of the system.
[Links (documentation, blog post, etc)]:
Comment 5•4 months ago
|
||
Added to the Fx151 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx151 release notes.
Updated•4 months ago
|
Updated•3 months ago
|
Description
•