How to define Firefox to “allow and remember” Java plugin?
We have a Java application used by about five hundred computers, the recommended Firefox version to use is Firefox 43.
Every time a new user starts using the application or a new PC has to be installed we need to tell the user to manually click the button below and on the following window click "allow and remember".
Searching the web I saw that firefox provides mozilla.cfg file which can be used to change parameters but I couldn't find which ones I should use to "allow and remember" plugin permissions so we don't have to tech every new user to do that (also, old users often forget). It would be great to distribute this file over the network or create a script to run along firefox installation.
To summarize, what I want is to find a way to do what is described on the steps "Always activate Java for a site" and "Java security prompts" of this: https://support.mozilla.org/en-US/kb/how-allow-java-trusted-sites in the mozilla.cfg file or any other configuration option so users don't have to it themselves.
被采纳的解决方案
You could give this code in mozilla.cfg a try:
// pref("plugin.state.java", 2);
More information about plugin.state
0:Never Activate; 1:Ask to Activate; 2:Always Activate定位到答案原位置 👍 2
所有回复 (3)
First, I would never recommend using an outdated version of Firefox because of the many security issues that are fixed in each version. I would recommend using Firefox ESR branch for managing a larger amount of computers, or in the environment that you describe.
If we cannot find a conclusion here, I highly recommend also posting this question in the ESR mailing list - they are very responsive as they use the mconfig on a weekly basis. https://www.mozilla.org/en-US/firefox.../faq/
It will depend what version of Java you are using, as there is a config in Firefox 43 that blocks all plugins that have been deemed a priority 1 vulnerability based on these release dates (it does not matter the Firefox version) this about:config
- https://blocked.cdn.mozilla.net/ (you will have to search through with ctrl +F "Java")
Also the extensions detailed by mike kaply in this solutions links are still valid:
I hope that helps, that is all I know.
选择的解决方案
You could give this code in mozilla.cfg a try:
// pref("plugin.state.java", 2);
More information about plugin.state
0:Never Activate; 1:Ask to Activate; 2:Always Activate
It worked, thanks.