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

RESOLVED INVALID

Status

Core Graveyard
File Handling
RESOLVED INVALID
6 years ago
2 years ago

People

(Reporter: davebad, Unassigned)

Tracking

14 Branch
x86_64
Windows 7

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
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
Last Resolved: 6 years ago
Resolution: --- → INVALID
(Assignee)

Updated

2 years ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.