So there have been a bunch of problems with <input type="file">
since we made the textfields not be editable to solve bug 258875 and
related attacks.  I think we need to consider redesigning the user
interface for these controls.

I think the first step here is to figure out what the requirements
for the user interface are.  Here's a draft:

* fit within the space that Web pages expect file controls to take up
** respond reasonably when resized, within some range (above minimum)
* show what file (or, in the future, files) are currently selected
** maybe emphasizing the leaf name?
* have a way to open the file picker to set the control's value
* have a way to clear the control
* (maybe) ability to copy/paste file names (via context menu?)
* have appropriate appearance for enabled and disabled states
* not look like you can type in it
* consider how it should respond to author and user CSS
** decide which properties should be ignored
** for the rest, decide what they should do
* consider which parts should have native-theme appearance

What am I missing?

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to