Impossible to download / read some PDF files
Categories
(Firefox :: Downloads Panel, defect, P2)
Tracking
()
People
(Reporter: Dexter, Assigned: sstreich)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
Since a few Nightlies (sorry, I don't have the exact regression window!) - we're currently at 90.0a1 (2021-04-20) - it is impossible to download some PDF files in order to read or view them. The problem appears to be frequently happening on origins that serve the file over HTTP instead of HTTPS.
Steps to reproduce:
- Initiate a PDF download from a HTTP origin (e.g. this is failing for me).
- The "Download" panel from the toolbar will show an entry for the file, mentioning that download was blocked because of a security risk. Clicking the icon to get more informations, I'm asked to either "Open" (or "Save") the file or "Delete it".
- Clicking "Open" (or "Save") does not initiate the action. Instead the file is marked as "Failed" in the download panel.
Expected behaviour:
At step (3) I should be able to open or save the PDF file, after having acknowledged the risks.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Is this a duplicate of Bug 1686756 ? ... comments 7 and 8
The download takes more than 3 seconds and is thereby cancelled by the http-background request. --> Bug 1683015
The flag for
nsILoadInfo::HTTPS_ONLY_TOP_LEVEL_LOAD_IN_PROGRESS
does not get set beforedom.security.https_only_mode_send_http_background_request
cancels the request
Alessio, is the issue solved if you set dom.security.https_only_mode_send_http_background_request
to false
Reporter | ||
Comment 2•4 years ago
|
||
(In reply to Simon Mainey from comment #1)
Is this a duplicate of Bug 1686756 ? ... comments 7 and 8
The download takes more than 3 seconds and is thereby cancelled by the http-background request. --> Bug 1683015
The flag for
nsILoadInfo::HTTPS_ONLY_TOP_LEVEL_LOAD_IN_PROGRESS
does not get set beforedom.security.https_only_mode_send_http_background_request
cancels the requestAlessio, is the issue solved if you set
dom.security.https_only_mode_send_http_background_request
tofalse
No, looks like the problem is still there if I flip that pref to false (even after restarting Nightly).
Comment 3•4 years ago
•
|
||
Hey Alessio, thanks for reporting. I finally got around to test using your STRs.
Can you please double check, using this STRs.
(1) Click this link which will open the PDF Viewer.
(2) On the right hand side in the Menu, click the Download
button
(3) Panel appears, hit safe file
(4) On top right hand side, the download icon
turns red, click that icon and you should see File not downloaded: potential security risk
(5) Click on the info
button and Download Details appear
(6) Click Allow Download
and file should be downloaded
Is that what you experience as well? Or is there something I am missing?
Reporter | ||
Comment 4•4 years ago
|
||
(In reply to Christoph Kerschbaumer [:ckerschb] from comment #3)
Hey Alessio, thanks for reporting. I finally got around to test using your STRs.
Can you please double check, using this STRs.
(1) Click this link which will open the PDF Viewer.
(2) On the right hand side in the Menu, click theDownload
button
(3) Panel appears, hitsafe file
(4) On top right hand side, thedownload icon
turns red, click that icon and you should seeFile not downloaded: potential security risk
(5) Click on theinfo
button andDownload Details appear
(6) ClickAllow Download
and file should be downloadedIs that what you experience as well? Or is there something I am missing?
I can't reproduce the problem in Nightly anymore :O
Comment 5•4 years ago
|
||
If instead of download I pick "Open" in the dialog, I can reproduce.
Comment 6•4 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #5)
If instead of download I pick "Open" in the dialog, I can reproduce.
Marco, thanks for testing. I just tried your suggestion using the latest mozilla-central code again (Basti used Nightly) and we both can't reproduce that problem anymore. Can you do us a favour and test on your end again - thanks so much!
Comment 7•4 years ago
•
|
||
It actually requires an additional step, that is to set the handler as Always Ask.
In this video I'm setting pdf to always ask, and when asked I choose to open. I suppose it would also work with other types.
After this, if I click on retry it just instantly fails.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 8•4 years ago
|
||
Comment 10•4 years ago
|
||
Backed out for causing bc failures on browser_test_mixed_content_download.js.
Comment 11•4 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:sstreich, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Updated•4 years ago
|
Comment 14•4 years ago
|
||
I was able to reproduce the issue using Win 10 and build 90.0a1.
Verified as fixed on Win10, Mac and Ubuntu 20.4 using Beta 95.0b4(20211107190147).
Updated•4 years ago
|
Description
•