Closed Bug 756028 Opened 12 years ago Closed 12 years ago

Firefox (only mac version) doesn't fire focus/blur events when someone uses mouse to click a checkbox/radio button

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

12 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: amit83.saxena, Unassigned)

References

Details

(Whiteboard: [webcompat])

User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19

Steps to reproduce:

Please note that this problem is only with the Mac Version of Firefox. It works fine on windows and linux (ubuntu).

When a checkbox/radio is clicked with a mouse, the focus event is not fired. If I use <Tab> key to navigate then the focus event is fired. Here is an example:

http://jsfiddle.net/54y69/147/

Click on the checkboxes on different operating systems and notice the difference.


Actual results:

Focus event was not triggered, whereas it should have been. It is triggered in Windows/Linux version.


Expected results:

Focus event should be triggered when clicking a checkbox/radio on Mac version of Firefox.
OS: Linux → Mac OS X
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Untriaged → DOM: Events
Product: Firefox → Core
QA Contact: untriaged → events
IIRC this is on purpose, because the behavior is OSX convention.
(I could be wrong. Haven't used OSX for ages.)
Component: DOM: Events → Event Handling
That's correct behaviour, as buttons are not focused when clicked on Mac.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
It will be great if someone can explain the reasoning behind different behaviour, depending on the Operating system. Why does this happen only on Mac?

For example, chrome behaves the same on all OS in this case. The focus event is not triggered on clicking the checkbox/radio, and is triggered on pressing <TAB> key, but it is uniform across all platforms.
(In reply to Amit Saxena from comment #4)
> It will be great if someone can explain the reasoning behind different
> behaviour, depending on the Operating system. Why does this happen only on
> Mac?

Since the Mac predates both Windows and gtk, it might be more correct to ask why they are different.

In all seriousness though, we try to implement the focus behaviour of the native operating system as best we can. Which means that on Mac, buttons are not focused when clicked.
Whiteboard: [webcompat]
Flags: webcompat?
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.