[Resolved] Allowing application/pdf no longer works

Bug reports and enhancement requests
Post Reply
emile
Posts: 5
Joined: Wed Jun 06, 2012 11:37 pm

[Resolved] Allowing application/pdf no longer works

Post by emile »

Adding application/pdf in noscript.allowedMimeRegExp used to work without a hitch for me until a recent NoScript update (I think it was v 2.4.3rc1). PDFs no longer display in the browser (unless I tell NS to allow the page they are hosted on, of course).

I have Firefox 13.0 on Win7, NoScript v 2.4.4, and I use the PDF-XChange Viewer's latest browser plugin (2.5.201.0).
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Allowing application/pdf no longer works

Post by Thrawn »

This is probably because Firefox has started bundling an integrated PDF viewer written in JavaScript. You can allow the site, or you can configure Fx to use another reader (Foxit, Adobe, Sumatra, etc).
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
emile
Posts: 5
Joined: Wed Jun 06, 2012 11:37 pm

Re: Allowing application/pdf no longer works

Post by emile »

Unfortunately, Firefox is already set up to use an external pdf plugin (PDF-XChange). I also would really like to avoid having to allow sites whenever I am looking at a pdf if at all possible. Similarly, I want to avoid having to download and open the files outside Firefox. (As part of my work, I look at a lot pdf files from a variety of different sites and doing it in the browser is best for me.)

Nevertheless, I appreciate the help, Thrawn!
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Allowing application/pdf no longer works

Post by dhouwn »

AFAIK, the internal PDF reader shouldn't be bundled quite yet with the release versions, once it will, it will be disable-able (is that a word?) through the "pdfjs.disabled" about:config setting (bad decision IMHO).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0
emile
Posts: 5
Joined: Wed Jun 06, 2012 11:37 pm

Re: Allowing application/pdf no longer works

Post by emile »

Anybody else have any idea what I can do to fix this problem? I also tried re-installing the plug-in but to no avail. Thank you for any help!
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
User avatar
therube
Ambassador
Posts: 7971
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Allowing application/pdf no longer works

Post by therube »

Do you have more then one item in noscript.allowedMimeRegExp?
I think having more then one is breaking things?

If you only enter application/pdf does it then work?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120613 Firefox/15.0a2 SeaMonkey/2.12a2
User avatar
therube
Ambassador
Posts: 7971
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Allowing application/pdf no longer works

Post by therube »

Looks like it might be more then one issue.
Appears it is not parsing the value list correctly, in that anything (any second expression) after the initial expression causes all (?) things to break.

And then also just having simply application/pdf alone fails too.

I'm not sure that application/x-java-vm is working either (alone)? Not getting a placeholder, but then the applet is not loading either, http://www.java.com/en/download/testjava.jsp? (Java 1.6.0_33)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120613 Firefox/15.0a2 SeaMonkey/2.12a2
emile
Posts: 5
Joined: Wed Jun 06, 2012 11:37 pm

Re: Allowing application/pdf no longer works

Post by emile »

It doesn't work either on its own, or with other expressions in the string.
therube wrote:Looks like it might be more then one issue.
Appears it is not parsing the value list correctly, in that anything (any second expression) after the initial expression causes all (?) things to break.

And then also just having simply application/pdf alone fails too.
Does this mean that you are having the same issues? Any idea what could be causing this?
therube wrote:I'm not sure that application/x-java-vm is working either (alone)? Not getting a placeholder, but then the applet is not loading either, http://www.java.com/en/download/testjava.jsp? (Java 1.6.0_33)
I played around a bit and it seems that neither application/x-java-vm, nor application/x-silverlight works.
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
User avatar
therube
Ambassador
Posts: 7971
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Allowing application/pdf no longer works

Post by therube »

Fixed with the development build 2.4.7rc1.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120617 Firefox/15.0a2 SeaMonkey/2.12a2
emile
Posts: 5
Joined: Wed Jun 06, 2012 11:37 pm

Re: [Resolved] Allowing application/pdf no longer works

Post by emile »

Works great! Thank you!
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
Post Reply