Open Bug 1877898 Opened 8 months ago Updated 8 months ago

click() on a download link does not work for PDFs

Categories

(Fenix :: WebExtensions, defect)

Firefox 124
All
Android
defect

Tracking

(firefox124 affected)

Tracking Status
firefox124 --- affected

People

(Reporter: jpd236, Unassigned)

Details

(Whiteboard: [qa-triaged])

Attachments

(1 file, 1 obsolete file)

Steps to reproduce:

  • Install the attached extension on Firefox for Android (tested on 124.0a1 from today)
  • Open the popup
  • Click the link that says "Click here to download PDF (not working)"

Actual results:

The download doesn't happen, and the Javascript console shows this error:

Navigation to toplevel data: URI not allowed (Blocked loading of: “data:application/octet-stream;base64,JVBERi0xLjEKJ...”)

Expected results:

The file should have been downloaded, as happens on desktop Firefox following the same instructions, and as happens for other file formats (such as the text file downloaded with "Click here to download text (working)" in the same popup of this test extension).

This is a follow up to https://bugzilla.mozilla.org/show_bug.cgi?id=1867717. I've verified that the fix is working for certain file formats, but PDFs are still not downloading. The reason seems to be different, but in any case, I'd expect consistent behavior on desktop and Android.

Attachment #9377563 - Attachment is obsolete: true

I was able to reproduce this issue using Motorola G9 plus (Android 11) on the latest Nightly - 124.0a1 from 9.02.2024.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: