Add support for webkitdirectory with <input type="file" />.
Categories
(Fenix :: Browser Engine, enhancement)
Tracking
(Not tracked)
People
(Reporter: danielhunterjacobs, Unassigned, NeedInfo)
References
(Depends on 1 open bug)
Details
User Agent: Mozilla/5.0 (Android 14; Mobile; rv:123.0) Gecko/123.0 Firefox/123.0
Steps to reproduce:
Go to https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory#result on Firefox on Android and try to select a directory.
Actual results:
I could only select individual files.
Expected results:
I should have been able to upload the full content of a directory.
Reporter | ||
Comment 1•11 months ago
|
||
This was once https://bugzilla.mozilla.org/show_bug.cgi?id=1426349, but that bug was sent to the Firefox for Android graveyard. https://bugzilla.mozilla.org/show_bug.cgi?id=1426349#c10 said to submit this issue to https://github.com/mozilla-mobile/fenix/, but that's a public archive replaced by https://github.com/mozilla-mobile/firefox-android, and https://github.com/mozilla-mobile/firefox-android/issues/5900 says "All the issues related to Fenix, Focus, Android Components, as well as GeckoView, will remain on Bugzilla."
Comment 2•11 months ago
|
||
This is not supported yet.
Ref: https://caniuse.com/input-file-directory
Related Code:
https://searchfox.org/mozilla-central/rev/7bbc54b70e348a11f9cd12071ada2cb47c8a14e3/modules/libpref/init/StaticPrefList.yaml#4570-4573
https://searchfox.org/mozilla-central/rev/7bbc54b70e348a11f9cd12071ada2cb47c8a14e3/mobile/android/components/geckoview/FilePickerDelegate.sys.mjs#19-24
Comment 3•10 months ago
|
||
The severity field is not set for this bug.
:bclark, could you have a look please?
For more information, please visit BugBot documentation.
Comment 4•7 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Fenix::Browser Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•6 months ago
|
Reporter | ||
Comment 5•3 months ago
|
||
This is now basically a parity:safari and parity:chrome issue, as https://issues.chromium.org/issues/40248532 has been marked fixed (fixed by code changes in https://issues.chromium.org/issues/40101963), as has https://bugs.webkit.org/show_bug.cgi?id=271705 (fixed by https://github.com/WebKit/WebKit/pull/34675).
Of note is that <input type="file" webkitdirectory>
crashes Chrome unconditionally when selecting a folder, but that is being fixed by https://chromium-review.googlesource.com/c/chromium/src/+/5982392.
Reporter | ||
Updated•3 months ago
|
Description
•