pdfs open in browser regardless of settings
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: terauck, Unassigned)
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
As usual, I clicked on a link to a pdf document. That normally gives me the option to open with a pdf viewer or save the file (and the option to cancel the request).
Actual results:
The pdf document opened in that tab (not a new tab, in spite of target=blank) in the browser. Issue also reported by two Windows users on the support site.
https://support.mozilla.org/en-US/questions/1346985
https://support.mozilla.org/en-US/questions/1346989
Expected results:
The setting "Always ask" on the General page of settings should have resulted in a dialog giving me the option to open the document in a pdf viewer of my choice or save the file and I could have cancelled the request.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
I made a mistake, thinking of other links. Of course, there was no "target=blank" attached to the link.
Comment 3•4 years ago
|
||
I am also having the same problem.
Comment 4•4 years ago
|
||
HI,
I'm trying to reproduce this on my end using https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
I also tried https://www.w3docs.com/snippets/html/how-to-embed-pdf-in-html.html where it says file example, https://www.w3docs.com/uploads/media/default/0001/01/540cb75550adf33f281f29132dddd14fded85bfc.pdf
both are behaving as expected, according to what i've set in Applications (within
"Choose how Nightly handles the files you download from the web or the applications you use while browsing." in about:preferences#general)
Do you have another link as an example for me to try replicate on my end?
Comment 5•4 years ago
|
||
Is this related? https://bugzilla.mozilla.org/show_bug.cgi?id=1673855
Thank you, Clara Guerrero for taking the time to look at this issue. Clicking on the links in your post produces the expected results for me also. In my case (other users may be different) the problem relates to links in a local html file to documents on my desktop. I have been creating and successfully testing links like that for many years (probably thousands of links).
I have created an html file containing a local link and a link relating to dummy.pdf. Clicking the latter has the expected result; clicking the former (on my desktop) results in the document opening in the active tab (the link will be meaningless on another device). Clicking on the former link in another local html file produced the expected results until I installed Firefox 91.0. I have uploaded the file and this is a link to it: https://www.mediafire.com/file/9v4phrk7c1ngapl/test.html/file
I don't know whether the issue is related to the bug report you linked.
(In reply to watchman from comment #6)
Thank you, Clara Guerrero for taking the time to look at this issue. Clicking on the links in your post produces the expected results for me also. In my case (other users may be different) the problem relates to links in a local html file to documents on my desktop. I have been creating and successfully testing links like that for many years (probably thousands of links).
I have created an html file containing a local link and a link relating to dummy.pdf. Clicking the latter has the expected result; clicking the former (on my desktop) results in the document opening in the active tab (the link will be meaningless on another device). Clicking on the former link in another local html file produced the expected results until I installed Firefox 91.0. I have uploaded the file and this is a link to it: https://www.mediafire.com/file/xbz1tvfmay2q8na/test.html/file
I don't know whether the issue is related to the bug report you linked.
Reporter | ||
Comment 10•4 years ago
|
||
I tried to remove the attachment "a local html file" but couldn't. It no longer exists.
Comment 11•4 years ago
|
||
I tapped Attached file "contains links to a local pdf file and a web pdf" — Nothing happens upon tapping on first link.
Did I grab the intended file?
Best,
Clara
Comment 12•4 years ago
|
||
Reporter | ||
Comment 13•4 years ago
|
||
Clara Guerrero, yes, you got the correct file. As I said in comment #10, the first file has been deleted on mediafire. I made a mistake when pasting an url into it. Attachments can't be amended or deleted.
Reporter | ||
Comment 14•4 years ago
|
||
It seems this issue is caused by a clumsy semi-fix in Firefox 91. See bug 1726501. A partial remedy is to disable Firefox as a viewer; it is my great pleasure to do that.
Comment 15•3 years ago
|
||
(In reply to watchman from comment #14)
It seems this issue is caused by a clumsy semi-fix in Firefox 91. See bug 1726501. A partial remedy is to disable Firefox as a viewer; it is my great pleasure to do that.
Bug 1726501 just landed in Firefox 91 and you filed this bug about a month ago, so the cause must be something else.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 17•3 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1733362#c3 contains a thorough explanation of the situation (as of Firefox 93, released last week).
Description
•