Cannot open a pdf with Files or gmail apps
Categories
(GeckoView :: PDF Viewer, defect, P1)
Tracking
(firefox120 unaffected, firefox121 unaffected, firefox122+ fixed)
Tracking | Status | |
---|---|---|
firefox120 | --- | unaffected |
firefox121 | --- | unaffected |
firefox122 | + | fixed |
People
(Reporter: calixte, Assigned: calixte)
References
Details
(Keywords: regression)
Attachments
(1 file)
When I try to open a pdf with a Pixel 7 pro from the Files app, Fenix returns a 404.
But it works when I try to open a pdf from Chrome.
I added some logging in:
https://searchfox.org/mozilla-central/source/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/ContentInputStream.java#115-132
and when the pdf is provided by Files (content://com.google.android.apps.nbu.files.provider...
), isExported
returns false
, when it returns true
when opened from Chrome (content://media/external/downloads/...
).
Checking if the provider is exported is one of the mitigations proposed here:
https://developer.android.com/privacy-and-security/risks/content-resolver#mitigations_2
After reading this again and again, I can see that there is a "OR" between each possibility.
So here we want to be sure that the user granted the provider and consequently we don't need to check if it's exported.
:olivia, wdyt ?
Assignee | ||
Comment 1•1 year ago
|
||
Some Google apps which are files provider are exported or not, hence checking for
the exported flag is likely too restrictive.
We can only rely on having user agreement to read pdf files on Android devices.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
[Tracking Requested - why for this release]: the feature isn't usable
I am sure Calixte will fix it quickly but I would like RM to be aware of this
Updated•1 year ago
|
Updated•1 year ago
|
Comment 3•1 year ago
|
||
Set release status flags based on info from the regressing bug 1864956
Comment 4•1 year ago
•
|
||
Thanks for the background!
After reading this again and again, I can see that there is a "OR" between each possibility.
So here we want to be sure that the user granted the provider and consequently we don't need to check if it's exported.
That makes sense to me too. I'll see if I can find the right reviewer since there are many implications too.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
The bug is marked as tracked for firefox122 (nightly). However, the bug still has low severity.
:olivia, could you please increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 7•11 months ago
|
||
bugherder |
Updated•11 months ago
|
Updated•11 months ago
|
Description
•