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!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

locking preferences for handling pdf files in firefox

  • 4 回覆
  • 1 有這個問題
  • 10 次檢視
  • 最近回覆由 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.

所有回覆 (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 於 修改

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 於 修改

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.