Open Bug 1842558 Opened 2 years ago Updated 3 days ago

PWA and Custom tab fails to open PDF file

Categories

(Firefox for Android :: PWA, defect, P5)

Firefox 115
All
Android
defect

Tracking

()

People

(Reporter: wurstsemmel, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group4])

Attachments

(1 file, 1 obsolete file)

Attached video pdf-PWA.mp4

Steps to reproduce:

  1. Open PWA eltern.kitaplus.de* and navigate to inbox within PWA.
  2. Open a message which contains a pdf as attachment.
  3. Tap on the attachment to open the pdf.
  • login credentials required

Actual results:

The PWA switches to Firefox for Android and nothing happens. The pdf is neither displayed nor downloaded.

See attached screen recording: pdf-PWA.mp4

Expected results:

The PWA should display the pdf.

Note: When opening the website eltern.kitaplus.de in Firefox for Android (not PWA) the pdf is displayed as expected.

The severity field is not set for this bug.
:jonalmeida, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jonalmeida942)
Severity: -- → S2
Flags: qe-verify+
Flags: qe-verify+

Confirmed on BMW PWA in 120 on a Pixel 4a.

STR:

  • Install BMW PWA
  • Navigate to Reach Regulation in footer area of page
  • Select a PDF of the regulations in the app
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jonalmeida942)
Attachment #9387573 - Attachment is obsolete: true

This is most probably due to the site trying to open the PDF in a new tab ( target="_blank" set). Custom tabs should have the same problem.

See Also: → 1796433
Priority: -- → P5
Summary: PWA fails to open pdf file → PWA fails to open PDF file
Severity: S2 → S4
Severity: S4 → S2
Summary: PWA fails to open PDF file → PWA and Custom tab fails to open PDF file

The bug can also be reproduced when opening a Custom Tab, which can be very frustrating for users opening a ticket they received by email. There's no decent workaround (apart from copying the link URL from the email, opening Fenix and loading the URL from there).

STR for PWA

Expected result:

  • a PDF is loaded

Actual result:

  • The page doesn’t load

Alternative to https://pdf-redirect-issue-repro.onrender.com/pwa:

Clone https://github.com/titooan/pdf-redirect-issue-repro and run:

python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
python pdf_redirect_server.py --port 8765

Access from Fenix, but you might not be able to install the PWA because of the lack of HTTPS

Whiteboard: [fxdroid][group4]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: