On Android, when uploading file to a form, it pops up a limited file picker (no SAF)
Categories
(Fenix :: General, defect)
Tracking
(Not tracked)
People
(Reporter: mozilla, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox for Android
Steps to reproduce:
-
Visited a form with a file upload input:
<form action="upload.cgi">
<input type="file" id="myFile" name="filename"><br>
<input type="submit">
</form> -
Clicked Browse to chose a file to upload
-
When it asked for permissions, chose "Allow all"
Actual results:
A file picker showed up which had no access to SAF roots (such as Termux)
Intent issued by Firefox were:
06-27 09:34:48.374 1585 2309 I ActivityTaskManager: START u0 {act=android.intent.action.CHOOSER cmp=com.android.intentresolver/.ChooserActivityLauncher (has extras)} with LAUNCH_MULTIPLE from uid 10271 (BAL_ALLOW_VISIBLE_WINDOW) result code=0
06-27 09:34:48.421 1585 1786 I ActivityTaskManager: START u0 {act=android.intent.action.GET_CONTENT cat=[android.intent.category.OPENABLE] typ=/ flg=0x3000000 cmp=com.google.android.providers.media.module/com.android.providers.media.photopicker.PhotoPickerGetContentActivity (has extras)} with LAUNCH_MULTIPLE from uid 10271 (realCallingUid=10082) (BAL_ALLOW_VISIBLE_WINDOW) result code=0
It looks to me as if the file picker is a picker specially geared towards photos, although the html form says nowhere that it is only interested in picture uploads.
Expected results:
It should be possible to upload documents (files) from SAF roots such as Termux.
For comparison, the "Simple Document Editor" app allows to pick SAF files, and issues the following intent:
06-27 09:49:33.525 1585 3885 I ActivityTaskManager: START u0 {act=android.intent.action.OPEN_DOCUMENT cat=[android.intent.category.OPENABLE] typ=/ cmp=com.google.android.documentsui/com.android.documentsui.picker.PickActivity (has extras)} with LAUNCH_MULTIPLE from uid 10270 (BAL_ALLOW_VISIBLE_WINDOW) result code=0
Comment 1•3 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Networking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Reporter | ||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 2•3 months ago
|
||
The severity field is not set for this bug.
:royang, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Description
•