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!

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

locking preferences for handling pdf files in firefox

  • 4 wótegrona
  • 1 ma toś ten problem
  • 10 naglědow
  • Slědne wótegrono wót 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.

Wšykne wótegrona (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.

Wót Mark Schmidt změnjony

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!

Wót guigs změnjony

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.