Firefox macOS is doesn't trigger focus event when someone uses mouse to click a details summary
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
People
(Reporter: lauri.eskola, Assigned: mozilla)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Steps to reproduce:
Please note that this problem is only with the macOS version of Firefox. It works fine on Windows and Linux (Ubuntu).
When a details summary is clicked with a mouse, the focus effect is not visible. If I use <Tab> key to navigate then the focus effect is visible. Here is an example:
https://jsfiddle.net/lauriii/9t64fjap/
Actual results:
The focus is moved on the details summary but the focus effect is not visible, whereas it most likely should have been. The focus effect is visible in Windows/Linux version, as well as other major browsers on macOS such as Safari and Chrome.
Expected results:
The focus should be moved on the details summary and the focus effect should be visible when clicking a details summary.
Reporter | ||
Comment 1•5 years ago
|
||
I just realized this problem is wider than just the focus effect. It seems like the focus event isn't triggered at all when details summary is clicked with a mouse on macOS version of Firefox: https://jsfiddle.net/lauriii/9t64fjap/1/
Comment 2•5 years ago
|
||
Hi Lauri,
I can reproduce this using Firefox 70.0.1 and Firefox Nightly 72.0a1 on MacOS 10.15 and Windows 10 as well.
I will set a component in order to involve the development team in reviewing this issue.
Thank you for reporting!
Comment 3•5 years ago
|
||
Mac has different focus handling in general, and Firefox tries to follow OS conventions.
Lauri, is this a regression or has the behavior been the same in older versions of Firefox?
Reporter | ||
Comment 4•5 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #3)
Mac has different focus handling in general, and Firefox tries to follow OS conventions.
Lauri, is this a regression or has the behavior been the same in older versions of Firefox?
It doesn't look like an OS convention because Safari and Chrome on macOS both trigger focus event on when details summary is clicked with a pointer device.
I could reproduce this problem with Firefox 49.0 which according to MDN was the first Firefox release to support details. Therefore I don't believe this would be a regression.
Comment 5•5 years ago
|
||
(Chrome doesn't follow OS conventions on MacOS)
Thanks for testing.
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D72602
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Patch failed to land.
" Details: We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.
applying /tmp/tmpTkvc5x
widget/gtk/mozcontainer.cpp
Hunk #9 FAILED at 595.
1 out of 15 hunks FAILED -- saving rejects to file widget/gtk/mozcontainer.cpp.rej
abort: patch command failed: exited with status 256 "
Comment 10•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•