Closed Bug 1699636 Opened 4 years ago Closed 1 years ago

Second Download PDF is not launched after second click on the same link

Categories

(GeckoView :: PDF Viewer, defect, P3)

Firefox 86
Unspecified
All
defect

Tracking

(Not tracked)

RESOLVED INVALID

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.

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.

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.

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?

Flags: needinfo?(spacreau)
Severity: -- → S4
Priority: -- → P3

I joined the code in the attachments but I can't give you all the app.

Flags: needinfo?(spacreau)
Component: General → PDF Viewer

This is likely no longer valid given the integration of pdf.js.

Status: UNCONFIRMED → RESOLVED
Closed: 1 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: