We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

locking preferences for handling pdf files in firefox

  • 4 respostas
  • 1 has this problem
  • 10 views
  • Last reply by cor-el

more options

We are using firefox esr in an hospital with 2000 computers in italy. We need to lock preferences about handling pdf files on firefox. Our best choice is to use always acrobat reader to open pdf files externally the browser window. we noticed that some web pages that contains pdf files to download ask the user if save or open the pdf file and if the user does not uncheck the value "Do this automatically for files like this now on" this change the default behavior that we have chosen previously on firefox . our computers are running windows 7 32 bit ad the latest version or the previous version of firefox esr (38 or 24). Thanks in advance.

We are using firefox esr in an hospital with 2000 computers in italy. We need to lock preferences about handling pdf files on firefox. Our best choice is to use always acrobat reader to open pdf files externally the browser window. we noticed that some web pages that contains pdf files to download ask the user if save or open the pdf file and if the user does not uncheck the value "Do this automatically for files like this now on" this change the default behavior that we have chosen previously on firefox . our computers are running windows 7 32 bit ad the latest version or the previous version of firefox esr (38 or 24). Thanks in advance.

All Replies (4)

more options

Unfortunately there's not a way to lock settings in Firefox at this time. There is also not a way to modify these settings via group policy or something similar.

The best solutions I can think of would be either to set the settings how you would like them and then freeze the system running Firefox, using a tool like Faronics Deep Freeze, OR run Firefox remotely (using MS RemoteApp or similar) while ensuring that the settings are set up the way you want prior to deploying the RemoteApp.

Whatever you chose to do, there is no fully internal to Firefox solution for this sort of thing.

Mark Schmidt modificouno o

more options

Hi enrico8, The best place to ask is the experts on the ESR mailing list:

However to lock this preference make sure to read the last paragraph about ESR and Adobe Acrobat in this MDN article!

guigs modificouno o

more options

So if I set Firefox to use Acrobat Reader to open pdf files and then in about:config page I set pdfjs.disabled to true I can obtain the wanted result?

more options

You can only set a (default) value to prefs that are present on the about:config page.

You can't use about:config to set a choice that is stored in the mimeTypes.rdf file and "Do this automatically for files like this now on" is a setting that is stored in mimeTypes.rdf and not stored as a pref. This setting depends on the MIME type that the servers sends with a file. The built-in PDF Viewer only supports application/pdf

The mozilla.cfg file is run as a JavaScript file with chrome permissions, so in principle you could parse the mimeTypes.rdf file in the current Firefox profile folder on startup.