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!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Ce sujet de discussion a été fermé et archivé. Veuillez poser une nouvelle question si vous avez besoin d’aide.

Firefox 19 does not honor lockPref settings

  • 3 réponses
  • 5 ont ce problème
  • 6 vues
  • Dernière réponse par cor-el

more options

Since several months I have successfully used "lockPref" to lock settings (specifically, proxy settings) on Firefox 17 and Firefox 18.
I am running Ubuntu 10.04, and I have used the file:
/etc/firefox/pref/firefox.js.
Firefox 17 did not always honor those settings. Often it did, sometimes it did'nt. I also found that there is another file location some people are using (?), and this is:

usr/lib/firefox/defaults/preferences/vendor-firefox.js 

To be sure, I put my settings into both of them. With Firefox 18, it did honor those settings. So this was working well.
(Note - I have NOT used any byteshifting or anything, as one can read was necessary for old versions of Firefox. There being no clear documentation by version, I feel I have no way to tell if this is actually still required or not. It was working without any byteshifting on Firefox 17 and 18.)

I just upgraded to Firefox 19 - and voila (of course, I might say) again the settings are not being honored. This time they are NEVER honored. They are JUST IGNORED, EVERY TIME.

This is very upsetting - can someone please point out what is now changed?
Do I now need to use yet another configuration locking file location?
Or do I suddenly need to do this byteshifting thing - if so what is the procedure right now for this?

Settings I am trying to lock are:

//set proxy server settings
lockPref("network.proxy.http", "a.b.c.d");
lockPref("network.proxy.http_port", yy);
lockPref("network.proxy.https", "a.b.c.d");
lockPref("network.proxy.https_port", yy);
lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
lockPref("network.proxy.type", 1);

Since several months I have successfully used "lockPref" to lock settings (specifically, proxy settings) on Firefox 17 and Firefox 18.<br /> I am running Ubuntu 10.04, and I have used the file:<br /> /etc/firefox/pref/firefox.js. <br /> Firefox 17 did not always honor those settings. Often it did, sometimes it did'nt. I also found that there is another file location some people are using (?), and this is:<br /> usr/lib/firefox/defaults/preferences/vendor-firefox.js <br /> To be sure, I put my settings into both of them. With Firefox 18, it did honor those settings. So this was working well.<br /> (Note - I have NOT used any byteshifting or anything, as one can read was necessary for old versions of Firefox. There being no clear documentation by version, I feel I have no way to tell if this is actually still required or not. It was working without any byteshifting on Firefox 17 and 18.)<br /> <br /> I just upgraded to Firefox 19 - and voila (of course, I might say) again the settings are not being honored. This time they are NEVER honored. They are JUST IGNORED, EVERY TIME.<br /> <br /> This is very upsetting - can someone please point out what is now changed? <br /> Do I now need to use yet another configuration locking file location?<br /> Or do I suddenly need to do this byteshifting thing - if so what is the procedure right now for this?<br /> <br /> Settings I am trying to lock are:<br /> <br /> //set proxy server settings<br /> lockPref("network.proxy.http", "a.b.c.d");<br /> lockPref("network.proxy.http_port", yy);<br /> lockPref("network.proxy.https", "a.b.c.d");<br /> lockPref("network.proxy.https_port", yy);<br /> lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");<br /> lockPref("network.proxy.type", 1);

Modifié le par cor-el

Toutes les réponses (3)

more options

Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes

See also:

more options

Did not work for me - I need the DEFAULT settings for ALL USERS. So when a new user account gets created, then it should take the defaults from there. As mentioned above, it does "mostly" files you put into etc-firefox-pref- folders.

more options

Maybe it is best to continue the conversation in your other thread about locking prefs, so I'm closing this thread.

Please continue here: