Closed Bug 298466 Opened 20 years ago Closed 20 years ago

Pressing "Enter" while focus is on "Browse" button of a file field should not submit form

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 252526

People

(Reporter: timwi, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 STR: Reproducible: Always Steps to Reproduce: 1. Find a form with an <input type='file'>, e.g. https://bugzilla.mozilla.org/attachment.cgi?bugid=298442&action=enter 2. Navigate to the "Browse" button using the Tab key (alternatively, click in the filename textbox and then press Tab once) 3. Press Enter Actual Results: File Upload dialog to choose a file appears, *and* form is submitted at the same time Expected Results: File Upload dialog to choose a file should appear, but form should not be submitted
Tried on provided link. Wasn't able to reproduce this. I recieved the expected results.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050619 Firefox/1.0+ WFM
I was about to submit the same bug report. I'm on FreeBSD with Firefox 1.0.5 And here's the exact step I reproduced it: 1. on the given page, using only TAB key to navigate to the "browse" button 2. Hit Enter key 3. Notice the firefox icon on the upper-right corner indicateds that the page is loading 4. After a few seconds, get a "You did not specify a file to attach." error on the page.
Fixed in trunk/1.5 by bug 252526 *** This bug has been marked as a duplicate of 252526 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.