geckoview example not upload any file, img etc ..
Categories
(GeckoView :: General, defect, P3)
Tracking
(firefox71 wontfix, firefox141 fixed)
People
(Reporter: mario64aq, Assigned: fmasalha, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [fxdroid] [geckoview])
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
0 * File permission already have
- https://www.how-old.net/#
- Use your own photo button click
- showed open document app(android 9.0 basic file open app)
- Click for upload one img
- return site and Nothing upload.
*other site same and img,file
Actual results:
Error msg
E/GeckoSession: Only file URIs are supported: content://com.android.providers.media.documents/document/image%3A119
E/GeckoConsole: [JavaScript Error: "NS_ERROR_FILE_UNRECOGNIZED_PATH: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]" {file: "jar:jar:file:///data/app/org.mozilla.geckoview-UdScE6_cuM-iZuV3bmsHiw==/base.apk!/assets/omni.ja!/components/GeckoViewPrompt.js" line: 1012}]
Expected results:
upload file
Comment 1•6 years ago
|
||
GV needs to write content to a temp file and then upload the temp file.
Comment 3•3 years ago
|
||
The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.
Updated•3 years ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
To fix this bug:
- Likely change is to make a temp file here in
onFileCallbackResult
in GeckoView Example. A good source of inspiration is the AC implementation, which usesuri.toFileUri
.
Updated•3 months ago
|
Updated•3 months ago
|
Assignee | ||
Comment 5•3 months ago
|
||
Updated•3 months ago
|
Updated•2 months ago
|
Updated•29 days ago
|
Description
•