Second Download PDF is not launched after second click on the same link
Categories
(GeckoView :: PDF Viewer, defect, P3)
Tracking
(Not tracked)
People
(Reporter: spacreau, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Steps to reproduce:
In Firefox Focus App (or in my android App what integrate GeckoView)
Go to google.com site
Type "test pdf" in search input
Results is displayed with pdf file direct download [PDF] (in french language for me)
I can download a PDF file on a click on the google link.
A popup opens to download the PDF.
I choose Yes or Cancel. It doesn't matter.
Actual results:
If i tap another time on the same PDF file link.
Nothing happens
Nothing happens even if i reload the page, if app go in background, if i change page then go back.
The progress bar is blocked to 15%.
Expected results:
If i tap another time on the same PDF file link.
I would like to see the popup to open for downloading PDF file.
Comment 1•4 years ago
|
||
The only way I can reproduce this behavior is when the Android file access permission is denied. Focus 8.13.1 on a Pixel 3 running Android 11.
If you are using Android Components you will need to update to a recent version that has https://github.com/mozilla-mobile/android-components/pull/9442 which will reprompt the user for Android level file access.
Reporter | ||
Comment 2•4 years ago
|
||
On Samsung A50, Android 9, Focus 8.4.0, it works fine.
I always reproduce the problems on Android 10 Focus 8.13.1 on Samsung A40.
I don't use the Android Components in my GeckoView and my permissions are all accepted.
A pdf link only works one time. The second try don't trigger the onExternalResponse method.
Comment 3•4 years ago
•
|
||
Unfortunately it's really hard to debug these bugs without actual code we can debug, Sebastien could you provide us with a minimal test case app that reproduces this problem?
Updated•4 years ago
|
Reporter | ||
Comment 4•4 years ago
|
||
I joined the code in the attachments but I can't give you all the app.
Updated•2 years ago
|
Comment 5•1 years ago
|
||
This is likely no longer valid given the integration of pdf.js.
Description
•