<input type="file" accept="image/jpeg"> doesn't work on Windows
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: ted, Assigned: Gijs)
References
(Depends on 1 open bug, )
Details
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Comment 10•5 years ago
|
||
I think we can consider bug 1619153 (and probably bug 1508337) as a duplicate of this bug.
Those bugs should be fixed by implementing bug 1619203, which I think is the good way to go.
As the person who implemented support for mime type for accept attribute a while ago (bug 565274), I'm fine having a look at this.
The logic to translate mime type to file extensions is done in nsHTMLInputElement.cpp by calling nsExternalHelperAppService::GetFromTypeAndExtension.
We could upload the logic here, but this code is called in other places so we would need to be sure this doesn't introduce any issue.
If that case, we could implement this logic only in nsHTMLInputElement.cpp.
Comment 11•5 years ago
|
||
Actually, bug 1366645 should probably be implemented first, and would fix most of the issues mentioned in bug 1619203.
Assignee | ||
Comment 12•4 years ago
|
||
This got fixed by bug 1366645.
Description
•