Issue to PromptDelegate.FileCallback.confirm not handling URIs from content://com.android.providers
Categories
(GeckoView :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: amejia, Unassigned)
Details
(Whiteboard: [geckoview:2023?])
Updated•7 years ago
|
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Just hopping in to flag that we are exploring a GV implementation of Firefox Send for Android and this appears to be a blocker for us. Do you have an ETA on this work?
Comment 4•7 years ago
|
||
I've been preoccupied with some other bugs; I should be able to start seriously investigating this bug later this week or next week.
Updated•7 years ago
|
Comment 5•7 years ago
|
||
(In reply to [:jgruen] from comment #3)
Just hopping in to flag that we are exploring a GV implementation of Firefox Send for Android and this appears to be a blocker for us. Do you have an ETA on this work?
No ETA at this time. This bug is not on the GV team's 2019 H1 roadmap because it doesn't block Fenix MVP.
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
[:jgruen] a workaround could be done using a temp file or cache.
That will also allow any file from any source (including online sources) to be used/sent.
////////////////
File myFile = new File(this.getFilesDir(),"temp.cube");
try {
FileInputStream in = (FileInputStream) getContentResolver().openInputStream(data.getData());
FileOutputStream out = new FileOutputStream(myFile);
FileChannel inChannel = in.getChannel();
FileChannel outChannel = out.getChannel();
inChannel.transferTo(0, inChannel.size(), outChannel);
in.close();
out.close();
} catch (Exception e) {}
final Uri uri = Uri.parse("file:///"+myFile.getAbsolutePath());
callback.confirm(this, uri);
/////////////////
| Reporter | ||
Comment 8•7 years ago
|
||
Thanks @colormath, the workaround is working!
This is probably pretty close to what we'd be doing in GeckoView anyway, so seems like a reasonable way to go until this is fixed.
Comment 10•6 years ago
|
||
I'm editing a bunch of GeckoView bugs. If you'd like to filter all this bugmail, search and destroy emails containing this UUID:
e88a5094-0fc0-4b7c-b7c5-aef00a11dbc9
Updated•6 years ago
|
Comment 11•4 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:amoya, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Makoto says this bug has a workaround that browser app resolves content:// data by own (using content provider) then pass it.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 14•1 year ago
|
||
Bug 1674428 will have a some utility methods to access document uri etc.
Description
•