Open
Bug 1825079
Opened 3 years ago
HTMLInputElement's handling of MIME types in `accept` is awkwardly placed
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: rkraesig, Unassigned)
Details
HTMLInputElement transforms MIME types into extension-based filters before passing them along to nsIFilePicker. However, this is not desired on Android, where the native "file picker" uses MIME types directly, and does not support extension-based filters. The current workaround is simply to feed any supplied raw MIME types to nsIFilePicker alongside the resultant extension-globs; Android ignores the latter and the desktop OSes ignore the former.
This is strongly indicative of an abstraction-layer mismatch. We should probably refactor this so that the transformation happens in the nsIFilePicker implementation(s) rather than in HTMLInputElement — and then only on the platforms that require it.
You need to log in
before you can comment on or make changes to this bug.
Description
•