Closed Bug 819616 Opened 12 years ago Closed 6 years ago

Pressing Enter on a list item or an auto-fill entry in a form sometimes submits the form.

Categories

(Toolkit :: Autocomplete, defect)

17 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: linotechie, Unassigned)

References

(Depends on 1 open bug, )

Details

What I did: I intended to create a PayPal account on their registration page. When I started typing in the fields like "Email address", "First name", etc, a list of auto-complete entries (previously used emails, names, etc) appeared. I hit the down arrow to select one of them and pressed Enter to fill up the field with that entry. Alternatively, I also selected a country in the same manner from the drop-down list of countries.

What happened: The incomplete form got submitted (and came back with "missing required field" error).

What should have happened: The fields should have been populated with the selected entries and the form should not have been submitted. Because the form contained fields (other than the submit button) in which the Enter button could be used and submit button was not in focus when Enter was pressed.

Additional notes:
1. It only happens on certain Webpages and not all. The coding of the pages themselves might be to blame. In any case, it would perhaps be a good idea to provide an option if the user wishes to submit the form on pressing Enter on an auto-complete entry or a list item.
2. I found two similar bugs (172177 and 175597), but not sure if they have something in common.
Component: General → HTML: Form Submission
Product: Firefox → Core
Depends on: 286933
Component: HTML: Form Submission → Autocomplete
Product: Core → Toolkit
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.