Open Bug 1710994 Opened 3 years ago Updated 3 years ago

[macOS] button hover highlight disappears when right clicking a button

Categories

(Core :: Widget: Cocoa, defect, P2)

Desktop
macOS
defect

Tracking

()

Tracking Status
firefox-esr78 --- unaffected
firefox88 --- unaffected
firefox89 --- affected
firefox90 --- affected

People

(Reporter: atrif, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [proton-context-menus] [priority:2c])

Attachments

(1 file)

Attached video macOS_focus.mov

Affected versions

  • 90.0a1 (20210512174859)
  • 89.0b11 (20210511190154)

Affected platforms

  • macOS 11.3.1 ARM and Intel

Steps to reproduce

  1. Open Firefox and right-click a random button from the toolbar or tabs bar.

Expected result

  • The focus is kept on the right-clicked button.

Actual result

  • No focus can be seen on the right-clicked button.

Regression range

  • This is not a regression because this was reproducible when native context menus were enabled by default in Nightly (bug 1700679)

Notes

  • Attached a screen recording.
  • On Firefox 88.0.1 the focus is kept on the right-clicked button until the mouse is moved but while the context menu is opened the other buttons can be focused.
Has STR: --- → yes

Same on the Bookmarks Bar, e.g. right-click on a Bookmark button -> The Context Menu appears, but the Bookmark button does not keep hover focus.

Priority: -- → P2
Summary: [macOS] Focus is not kept when right clicking a button → [macOS] button hover highlight disappears when right clicking a button

On Windows the on hover focus is not retained if you move you cursor off of the element although it remains if your cursor remains on the element post right click.
It seems there are 3 variations of what can happen:
1 On hover focus enabled with context menu until the context menu disappears (previous mac behavior?) - i.e if the context menu is activated somewhere, on hover focus remains on the specific element that have the context menu activated
2 On hover focus is independent from the context menu selection (pre and post MR1 behavior on Windows) - i.e if the context menu is activated somewhere, on hover focus follows the mouse hover regardless
3 On hover focus disabled if context menu is activated (current mac behavior)

Katie, do you have a strong opinion regarding how this specific on hover scenario should be handled on macOS?

Flags: needinfo?(kcaldwell)
Whiteboard: [proton-context-menus] → [proton-context-menus] [priority:2c]

(In reply to Romain Testard [:RT] from comment #2)

1 On hover focus enabled with context menu until the context menu disappears (previous mac behavior?) - i.e if the context menu is activated somewhere, on hover focus remains on the specific element that have the context menu activated
2 On hover focus is independent from the context menu selection (pre and post MR1 behavior on Windows) - i.e if the context menu is activated somewhere, on hover focus follows the mouse hover regardless
3 On hover focus disabled if context menu is activated (current mac behavior)

1 never happened in Firefox, I think. The previous Mac behavior was 2, like on Windows.
However, 1 is what happens in Safari, and I think it's desirable.

One thing we could do here is to set an attribute like ismenutriggernode="true" on the toolbarbutton while a context menu is open on it, and then style elements with that attribute the same as hovered elements.

Option 1 seems the most logical - if a context menu is specific to an icon (and cursor location / tab order focus ) - display the icon with its background hover state to help visually connect the content to the trigger.

Flags: needinfo?(kcaldwell)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: