Convert FilePickerParent from using nsIFilePicker nsIFile-returning `files`/`file` to DOM File-returning domFileOrDirectory(Enumerator)
Categories
(Core :: DOM: Content Processes, enhancement, P3)
Tracking
()
People
(Reporter: asuth, Unassigned)
References
(Blocks 1 open bug)
Details
In https://bugzilla.mozilla.org/show_bug.cgi?id=1807360#c10 :nika proposes a refactoring to eliminate the intermediate use of nsIFile in relation to nsIFilePicker by FilePickerParent in order to let Fenix directly provide Blobs/Files that are directly backed by BlobImpls that support Android Content URIs without requiring nsIFile to be able to directly dereference the scheme.
Note that while there is some mention of https://searchfox.org/mozilla-central/source/mobile/android/components/geckoview/GeckoViewContentProtocolHandler.h and there is some JNI-bridged wrapping of nsIInputStreams, it seems that since it's easy to convert a content URI to a file descriptor that it could be feasible to build on nsFileStreamBase
to be the actual underlying input stream that could directly be handed and use the file descriptor.
Description
•