Closed
Bug 1497366
Opened 6 years ago
Closed 6 years ago
Pdf preview open new tab continuously
Categories
(Firefox :: File Handling, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 218257
People
(Reporter: atsushi, Unassigned)
Details
Attachments
(1 file)
(deleted),
image/gif
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Steps to reproduce:
Using 62.0.3+build1-0ubuntu0.16.04.2
After I changed the pdf setting under "Applications" in "about:preferences#general" to "use firefox', try to open a pdf file vie CTRL+O command
Actual results:
Firefox tries to open the file continuously
Expected results:
It should render the pdf via pdf.ks
Comment 1•6 years ago
|
||
(In reply to Atsushi Yamamoto [:atsushi] from comment #0)
> After I changed the pdf setting under "Applications" in
> "about:preferences#general" to "use firefox'
If I choose "Use other", then "Browse" and pick firefox.exe, the setting doesn't change.
If you get a "What should Firefox do with this file?" dialog before a download 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/
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Untriaged → File Handling
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•