Page 1 of 1
					
				pdf.js in Firefox 88+
				Posted: Sun Apr 11, 2021 9:12 pm
				by barbaz
				From FF 88 release notes -
Does NoScript control this JS or will it be able to?
 
			
					
				Re: pdf.js in Firefox 88+
				Posted: Mon Apr 12, 2021 2:46 pm
				by therube
				Test & see, 
https://www.pdfscripting.com/public/Fre ... lendar.pdf.
(You would hope, that FF would provide a pref to control that behavior?
After all, JavaScript is safe 

.)
 
			
					
				Re: pdf.js in Firefox 88+
				Posted: Mon Apr 12, 2021 4:52 pm
				by Giorgio Maone
				Bad news: NoScript has no control of what happens inside PDF.js-handled pages.
Good news: you can disable JavaScript by turning the pdfjs.enablescripting about:config preference to false. Firefox will be also so kind to tell you if this breaks some feature of the current document and offer an external viewer.
			 
			
					
				Re: pdf.js in Firefox 88+
				Posted: Mon Apr 12, 2021 5:24 pm
				by barbaz
				Thanks for the replies.
@therube I see the pdfjs.enableScripting pref in FF 87, so I tried toggling that to true and testing that PDF, but couldn't get the script to work?
@Giorgio Can NoScript tell whether a page it can't control is pdf.js?  If so, should the NoScript popup on FF 88+ recommend setting that pref when opened on a pdf.js page?
			 
			
					
				Re: pdf.js in Firefox 88+
				Posted: Mon Apr 12, 2021 6:07 pm
				by Giorgio Maone
				barbaz wrote: ↑Mon Apr 12, 2021 5:24 pm
@therube I see the pdfjs.enableScripting pref in FF 87, so I tried toggling that to true and testing that PDF, but couldn't get the script to work?
 
That one didn't work for me either, but 
this one pops up a JS alert as soon as you hit the submit button.
barbaz wrote: ↑Mon Apr 12, 2021 5:24 pm
@Giorgio Can NoScript tell whether a page it can't control is pdf.js?  If so, should the NoScript popup on FF 88+ recommend setting that pref when opened on a pdf.js page?
 
Need to check, but if it's possible I think it's a good idea.