click() on a download link does not work for PDFs
Categories
(Fenix :: WebExtensions, defect)
Tracking
(firefox124 affected)
Tracking | Status | |
---|---|---|
firefox124 | --- | affected |
People
(Reporter: jpd236, Unassigned)
Details
(Whiteboard: [qa-triaged])
Attachments
(1 file, 1 obsolete file)
2.77 KB,
application/x-zip-compressed
|
Details |
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.
Comment 3•8 months ago
|
||
I was able to reproduce this issue using Motorola G9 plus (Android 11) on the latest Nightly - 124.0a1 from 9.02.2024.
Updated•8 months ago
|
Description
•