Closed
Bug 1207088
Opened 10 years ago
Closed 10 years ago
Don't show the "Pick Folder..." button for a directory picking <input> on platforms that don't have a directory picker
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla44
| Tracking | Status | |
|---|---|---|
| firefox44 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
Details
Attachments
(1 file)
|
1.42 KB,
patch
|
jfkthame
:
review+
|
Details | Diff | Splinter Review |
Right now <input type=file directory> shows both the "Pick Files..." and the "Pick Folder..." buttons in Firefox for Android and Firefox OS. Neither platforms have a directory picker, so we shouldn't show the "Pick Folder..." button even if the dom.input.dirpicker pref is true.
| Assignee | ||
Comment 1•10 years ago
|
||
Note that the code in HTMLInputElement::ChooseDirectory redirects a click on "Pick Folder..." to open the file picker on these platforms, but from a user's perspective we shouldn't even show the button.
| Assignee | ||
Comment 2•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8664155 -
Attachment is patch: true
| Assignee | ||
Updated•10 years ago
|
Attachment #8664155 -
Flags: review?(jfkthame)
| Assignee | ||
Updated•10 years ago
|
Component: Widget → Layout: Form Controls
Version: 37 Branch → Trunk
Comment 3•10 years ago
|
||
Comment on attachment 8664155 [details] [diff] [review]
button
Review of attachment 8664155 [details] [diff] [review]:
-----------------------------------------------------------------
I guess this makes sense for now, though I hope we'll eventually have a better story for those platforms.
Attachment #8664155 -
Flags: review?(jfkthame) → review+
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/2e41ed832f7e for Werror bustage:
https://treeherder.mozilla.org/logviewer.html#?job_id=14517369&repo=mozilla-inbound
Flags: needinfo?(jwatt)
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
| Assignee | ||
Comment 8•8 years ago
|
||
The webkitdirectory solution that got shipped didn't implement two buttons.
Flags: needinfo?(jwatt)
You need to log in
before you can comment on or make changes to this bug.
Description
•