Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Javascript in Firefox 90 PDF form viewer

  • 5 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par fuffberry

more options

As of Firefox 90, the PDF viewer within Firefox is reported to handle Javascript in PDFs. What must be done to disable JAVASCRIPT within the PDF viewer?

As of Firefox 90, the PDF viewer within Firefox is reported to handle Javascript in PDFs. What must be done to disable JAVASCRIPT within the PDF viewer?

Solution choisie

Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste pdfjs.enableScripting and pause while the list is filtered

(3) Double-click the preference to switch the value from true to false

I'm not sure how to test that it worked. Maybe Adobe has a safe example on their website?

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (5)

more options

Solution choisie

Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste pdfjs.enableScripting and pause while the list is filtered

(3) Double-click the preference to switch the value from true to false

I'm not sure how to test that it worked. Maybe Adobe has a safe example on their website?

more options

By the way, it was false up to Firefox 87 and flipped to true starting in Firefox 88.

more options

I only see that pref set to true in Nightly.


  • 1702796 - Update pdf.js to version 2.8.320
    • #13116 Enable scripting by default in the viewer (PR 13053 follow-up)

Modifié le par cor-el

more options
more options

Thanks for the info - It was Firefox 88 release notes where I saw the bit about JAVASCRIPT in PDFs. I wish I could change the title on this issue to say "Javascript in Firefox 88 PDF form viewer" - upgraded my test system to FF90 then upgraded 'production' to FF88. Usually my questions are associated with the test 'nightly' version. I overlooked it when nightly went to version 88.