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!

Spletno mesto bo delovalo z omejenimi zmožnostmi, medtem ko na njem izvajamo vzdrževalna dela za vas. Če članki ne rešijo vaše težave in želite zastaviti vprašanje, naša skupnost za podporo čaka na vas na @FirefoxSupport na Twitterju in na /r/firefox na Redditu.

Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

locking preferences for handling pdf files in firefox

  • 4 odgovori
  • 1 ima to težavo
  • 10 ogledov
  • Zadnji odgovor od 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.

Vsi odgovori (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.

Spremenil Mark Schmidt

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!

Spremenil guigs

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.