MozillaZine

Firefox 57 does not display PDFs within page.[Linux.]

Discussion of general topics about Mozilla Firefox
jcobban
 
Posts: 125
Joined: February 4th, 2006, 7:34 pm

Post Posted January 23rd, 2018, 6:14 pm

When I add the following to a page:

<iframe src="/Articles/MicrofilmGimp.pdf" type="application/pdf" width="100%" height="600px" />

It works without any effort by the viewer in every browser EXCEPT Firefox which high-handedly IGNORES the clear instruction to display the document in the iframe and instead downloads it and without any warning to the customer, except the subtle appearance of a blue arrow in the menu bar, insists on downloading the file and requiring the user to open the file OUTSIDE OF THE BROWSER!

To see this in action go to https://www.jamescobban.net/displayPage ... rofilmGimp

I have tried several of the suggestions in this and other forums but all of them seem to be broken by Firefox 57.

I cannot demand that people who come to my web-site must switch to another browser. I need to be able to design my web pages so that they can be seen by anyone using any browser without having to install extra software.
Last edited by LIMPET235 on January 24th, 2018, 7:16 am, edited 1 time in total.
Reason: Added [Linux] to the title.

malliz
Folder@Home

User avatar
 
Posts: 43504
Joined: December 7th, 2002, 4:34 am
Location: Australia

Post Posted January 23rd, 2018, 6:31 pm

WFM
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"

kreemoweet
 
Posts: 729
Joined: December 30th, 2009, 11:25 pm

Post Posted January 23rd, 2018, 7:55 pm

I get the .pdf file immediately downloaded when I visit the link above, and a very large empty box on the displayed page. I have FF set to download all pdf's, as I'm sure a great many folks do.
I would surely hate to see FF IGNORE my instructions, and do something else.

malliz
Folder@Home

User avatar
 
Posts: 43504
Joined: December 7th, 2002, 4:34 am
Location: Australia

Post Posted January 24th, 2018, 2:43 am

Just to reiterate I tried this again with 57.04 and 58 and in both cases the PDF loads in the frame so it looks like its only old versions of Firefox that are at fault or perhaps a script blocking addon. It works with ublock origin
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"

Grumpus

User avatar
 
Posts: 11992
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted January 24th, 2018, 7:14 am

You need to go into /Edit/Preferences and set PDF to "Always Ask"
You will then get the panel with the option to open with a PDF viewer on your system or download the PDF file.
This is for most of the Linux versions of Firefox for the past few years.
No problem with the page downloading or opening in the iFrame.

therube

User avatar
 
Posts: 19104
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted January 24th, 2018, 10:25 am

(I'll just note that the, Content-Type application/pdf, is correct.)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

Return to Firefox General


Who is online

Users browsing this forum: No registered users and 3 guests