Open Bug 1887878 Opened 11 months ago Updated 3 months ago

Add support for webkitdirectory with <input type="file" />.

Categories

(Fenix :: Browser Engine, enhancement)

Firefox 123
All
Android
enhancement

Tracking

(Not tracked)

UNCONFIRMED

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.

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."

The severity field is not set for this bug.
:bclark, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(brclark)

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.

Component: General → Browser Engine
Severity: -- → N/A
Type: defect → enhancement
Summary: <input type="file" webkitdirectory> doesn't work. → Add suport for webkitdirectory with <input type="file" />.
Depends on: 1674428

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.

Summary: Add suport for webkitdirectory with <input type="file" />. → Add support for webkitdirectory with <input type="file" />.
You need to log in before you can comment on or make changes to this bug.