Page 1 of 1

[Resolved] Allowing application/pdf no longer works

Posted: Thu Jun 07, 2012 12:16 am
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).

Re: Allowing application/pdf no longer works

Posted: Thu Jun 07, 2012 2:15 am
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).

Re: Allowing application/pdf no longer works

Posted: Thu Jun 07, 2012 4:39 am
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!

Re: Allowing application/pdf no longer works

Posted: Thu Jun 07, 2012 9:13 am
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).

Re: Allowing application/pdf no longer works

Posted: Tue Jun 12, 2012 8:59 pm
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!

Re: Allowing application/pdf no longer works

Posted: Wed Jun 13, 2012 8:49 pm
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?

Re: Allowing application/pdf no longer works

Posted: Wed Jun 13, 2012 8:59 pm
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)

Re: Allowing application/pdf no longer works

Posted: Wed Jun 13, 2012 9:24 pm
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.

Re: Allowing application/pdf no longer works

Posted: Mon Jun 18, 2012 2:22 pm
by therube
Fixed with the development build 2.4.7rc1.

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

Posted: Mon Jun 18, 2012 6:15 pm
by emile
Works great! Thank you!