Овај сајт ће имати ограничену функционалност док га будемо ажурирали у циљу побољшања вашег искуства. Ако неки чланак не реши ваш проблем и желите да поставите питање, на располагању ће вам бити наше заједнице подршке @FirefoxSupport на Twitter-у и /r/firefox на Reddit-у.

Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Сазнај више

Ова тема је затворена и архивирана. Питајте друго питање ако вам је потребна помоћ.

Firefox 19 does not honor lockPref settings

  • 3 одговорa
  • 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: