Closed Bug 1322495 Opened 8 years ago Closed 8 years ago

Clicked button doesn't become the activeElement

Categories

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

52 Branch
Unspecified
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: joel.lear, Unassigned)

Details

(Keywords: testcase)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce:

1. Use this fiddle: https://jsfiddle.net/aytj5489/
2. Click the button on Mac with Firefox


Actual results:

The active element is the Body.


Expected results:

The button should be the active element since it was just clicked. This only happens on Mac, FF on windows this displays "button".
OS: Unspecified → Mac OS X
Keywords: testcase
Product: Firefox → Core
User Agent  Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0

I have tested this issue on Mac OS 10.12 with the latest Firefox release (50.0.2) and the latest Nightly (53.0a1-20161211030209) and managed to reproduce it.
When navigating to the URL provided in the description and clicking on the "Click" button, the active element is the Body.
Status: UNCONFIRMED → NEW
Component: Untriaged → Event Handling
Ever confirmed: true
button doesn't get focused on OSX. IIRC Safari has the same behavior.
Neil would remember this better.
Flags: needinfo?(enndeakin)
That's correct.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(enndeakin)
Resolution: --- → INVALID
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.