Bug 43064

Summary: Return key no longer submits forms for all form inputs - with reduction
Product: WebKit Reporter: Aaron Rosenzweig <arosenzweig>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, arosenzweig, dglazkov
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Simple HTML form to use as a reduction none

Aaron Rosenzweig
Reported 2010-07-27 11:15:44 PDT
Created attachment 62715 [details] Simple HTML form to use as a reduction Note: Reduction is attached! In Safari 3.x on Mac OS 10.4 Tiger using the "return key" on the keyboard would submit a multi value form with a submit button on most form elements. Now with Safari 5 on Mac OS 10.6 Snow Leopard the "return key" does not always submit the form. Something has changed from the way old Safari/MacOS handled this versus the new Safari/MacOS. I've attached a simple HTML form to be used as a reduction. Try this in Safari 3 on Tiger: 1) Open the reduction 2) put the focus on one of the text fields 3) hit the "return key" and watch it send the form 4) Put the focus on the HTML SELECT popup/dropdown 5) Choose another car brand from the menu. 6) While the car SELECT menu still has focus hit the "return key" and watch it submit the form. Try this in Safari 5 on Snow Leopard: 1) Open the reduction 2) put the focus on one of the text fields 3) hit the "return key" and watch it send the form 4) Put the focus on the HTML SELECT popup/dropdown 5) Choose another car brand from the menu. 6) While the car SELECT menu still has focus hit the "return key" only this time nothing happens, the user must use the mouse and click the submit button because "return" has no effect. So in this simple reduction, having focus on the HTML SELECT ignores the return key. Potentially other form inputs will also ignore. Only the HTML text input accepts the return key to submit the first button of the form. I have tried very hard to find an explanation for this on the web but have found none. Please comment as to why this behavior has changed. Thank you.
Attachments
Simple HTML form to use as a reduction (408 bytes, text/html)
2010-07-27 11:15 PDT, Aaron Rosenzweig
no flags
Alexey Proskuryakov
Comment 1 2010-11-23 22:55:36 PST
Dmitry, is there a bug to fix here?
Dimitri Glazkov (Google)
Comment 2 2010-11-24 07:15:01 PST
(In reply to comment #1) > Dmitry, is there a bug to fix here? Yup, it's fixed in http://trac.webkit.org/changeset/62391, bug 39532.
Alexey Proskuryakov
Comment 3 2010-11-24 11:09:54 PST
Thanks - so marking as duplicate. *** This bug has been marked as a duplicate of bug 39532 ***
Note You need to log in before you can comment on or make changes to this bug.