button onfocus handler doesnt get called on click

RESOLVED INVALID

Status

()

Firefox
General
RESOLVED INVALID
7 years ago
7 years ago

People

(Reporter: Manfred Knapp, Unassigned)

Tracking

4.0 Branch
x86_64
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0

The onfocus handler is not called if you click a button.

Reproducible: Always

Steps to Reproduce:
<html>
<body>
<button onclick="alert('onclick')" onfocus="alert('never seen')"> some button </button>
</body>
</html>

1. Click on button.

Actual Results:  
onfocus handler doesn't get called if you click that button.

Expected Results:  
onfocus handler is called if you click that button.

Works on Windows XP.

Comment 1

7 years ago
"never seen":
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0
Mozilla/5.0 (X11; Linux x86_64; rv:6.0a2) Gecko/20110606 Firefox/6.0a2
Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110606 Firefox/7.0a1

"never seen" and then goes into pop-up loop:
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17

"onclick":
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.71 Safari/534.24

Both "never seen" and "onclick":
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.8.131 Version/11.11
Version: unspecified → 4.0 Branch

Comment 2

7 years ago
On Mac, buttons do not receive focus when clicked, so this is correct behaviour.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.