Closed Bug 778032 Opened 12 years ago Closed 12 years ago

Dialog box opens when clicking in text area of input type file. Text not editable.

Categories

(Core Graveyard :: File Handling, defect)

14 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: davebad, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347

Steps to reproduce:

<div id = 'imgselect6' name = 'img_select'>
<input size='60' type='file' name='image6'>
</div>


Actual results:

Creates an expected text box and browse button. Clicking on the text box brings up a dialog box. The path/filenam inserted upon selection is not editable. So far this works as expected in IE9 and Chrome, but not Firefox 14.0.1


Expected results:

Clicking in the text area should do nothing. Clicking on the browse button should open a dialog. What am I missing?
Clicking on the text field acts just like clicking on the browse button, on purpose: for people who were used to editing the textfield directly, back when that was allowed, it allows them to have another way to select the file.

What exactly is the security issue?

Note that in Chrome, for example, clicking the "No file chosen" text likewise brings up a filepicker.  And Opera has exactly the sae behavior we do.
The described behavior is intentional.  See bug 258875.
Group: core-security
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.