Closed Bug 643968 Opened 13 years ago Closed 13 years ago

[OS X] In Firefox 4, clicking a radio button or checkbox doesn't focus it

Categories

(Core :: Layout: Form Controls, defect)

x86_64
macOS
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 577316

People

(Reporter: shivanfalcon, Unassigned)

References

()

Details

(Keywords: regression, testcase)

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0

Firefox 3.6 submitted the form when enter was pressed while focused on a checkbox
Firefox 4 does not submit the form on the same conditions

Reproducible: Always

Steps to Reproduce:
1. Load page with a valid form and submit button
2. Check/click a radio button or checkbox input element in the form
3. Press the enter/return key on keyboard
Actual Results:  
Nothing

Expected Results:  
Form is submitted

This worked in all versions up to and including Firefox 3.6
As it's not clear, this work on Windows. It's just OS X where it does not work.
Version: unspecified → Trunk
There is no information in this bug report indicating which web site is affected by this problem.

Reporter: please ask this on support.mozilla.com, or report here with exact steps to reproduce if you're convinced it's a bug in Firefox.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
websites that are accessible by Firefox.

Here is one example
http://cq2.crummett.us/indexnl.php?page=nl_newaccount

1. load http://cq2.crummett.us/indexnl.php?page=nl_newaccount
2. Click on the checkbox
3. Press enter

This works as expected on Windows, but not on OS X.

This is only one page, as an example, but any form with a radio button or checkbox exhibits this behavior.
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Cleared cache/cookies, disabled all addons and plugins, and the issue is still present.
For completeness, can you try safe mode and then separately a new profile please:
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile

Presuming it still occurs after that, could you see if you can find the regression range using this tool: (I can only test on Win or I'd try myself)
http://harthur.github.com/mozregression/
Component: General → Layout: Form Controls
Product: Firefox → Core
QA Contact: general → layout.form-controls
Summary: Forms do not submit on enter keypress when focused on a radiobutton or checkbox form element → [OS X] Forms do not submit on enter keypress when focused on a radiobutton or checkbox form element
Summary: [OS X] Forms do not submit on enter keypress when focused on a radiobutton or checkbox form element → [OS X] In Firefox 4, forms do not submit on enter keypress when focused on a radiobutton or checkbox form element
Tested probably 30 nightly builds. A lot of them failed to run at all.

entire 4.x branch has this defect
3.7a1 does not
3.7a7 has this bug

I ran out of time testing them all. Maybe I can narrow it down later.
If you use the tool in comment 5, it automatically bisects for you, normally only requiring <10 builds to be tested to get the range down to 24 hours of changesets, rather than the 30+ you've tested so far.
> 2. Check/click a radio button or checkbox input element in the form

This no longer focuses the radio or checkbox on Mac, because the OS convention is not to focus such controls when they're clicked.

You can restore the old behavior by setting the preference "accessibility.mouse_focuses_formcontrol" to true in about:config, if you really want to.

See bug 577316 for the discussion.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → DUPLICATE
Summary: [OS X] In Firefox 4, forms do not submit on enter keypress when focused on a radiobutton or checkbox form element → [OS X] In Firefox 4, clicking a radio button or checkbox doesn't focus it
You need to log in before you can comment on or make changes to this bug.