Closed Bug 1591640 Opened 6 years ago Closed 2 months ago

geckoview example not upload any file, img etc ..

Categories

(GeckoView :: General, defect, P3)

71 Branch
Unspecified
All
defect

Tracking

(firefox71 wontfix, firefox141 fixed)

RESOLVED FIXED
141 Branch
Tracking Status
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

  1. https://www.how-old.net/#
  2. Use your own photo button click
  3. showed open document app(android 9.0 basic file open app)
  4. Click for upload one img
  5. 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

GV needs to write content to a temp file and then upload the temp file.

Keywords: good-first-bug
Priority: -- → P3

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
Component: GeckoViewExample → General

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 uses uri.toFileUri.
Mentor: ohall
Whiteboard: [fxdroid] [geckoview]
Assignee: nobody → fmasalha
Status: NEW → ASSIGNED
Attachment #9491564 - Attachment description: Bug 1591640 geckoview example not upload any file, img etc .. r=ohall → Bug 1591640 - Update to fix file uploader in GeckoView Example
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: