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!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Эта тема была закрыта и архивирована. Если вам нужна помощь, задайте новый вопрос.

Firefox 19 does not honor lockPref settings

  • 3 ответа
  • 5 имеют эту проблему
  • 1 просмотр
  • Последний ответ от 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);

Изменено cor-el

Все ответы (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: