Opens new windows without stopping when I try to open a PDF file
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: vraimentres, Unassigned)
Details
Attachments
(1 file)
931.04 KB,
video/mp4
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
Steps to reproduce:
I choosed Firefox as my default application for opening PDF format files. Then I double-clicked a PDF file to open it.
Actual results:
Hundreds of empty windows was created.
Expected results:
The file should be opened in a tab.
Comment 1•5 years ago
|
||
Open about:preferences
and set PDFs to "Preview in Firefox".
If you get a "What should Firefox do with this file?" dialog when clicking a link on a web page, and you choose to open with Firefox, that will create an infinite loop. That dialog is for external applications only, and you're not supposed to be able to pick Firefox there [1]. To do that safely, use the Open in Browser extension [2].
The only way to view PDFs in Firefox is to set the action to "Preview in Firefox" in about:preferences. However, servers can still trigger the "What should Firefox do with this file?" dialog, usually by sending the Content-Disposition: attachment header. One way to get around that is the Bypass Forced Download extension [3]. Less commonly, they can also fail to correctly identify the file type by sending Content-Type: application/octet-stream. Extensions like Header Editor can override that [4].
[1] Bug 218257
[2] https://addons.mozilla.org/firefox/addon/open-in-browser/
[3] https://addons.mozilla.org/firefox/addon/bypass-forced-download/
[4] https://addons.mozilla.org/firefox/addon/header-editor/
Comment 2•5 years ago
|
||
This bug still regularly happens for me so I don't think it should be marked as resolved. This is a video of it in action
Description
•