Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

Adding default settings throuh mozilla.cfg not working on firefox-26

  • 1 resposta
  • 15 têm este problema
  • 27 visualizações
  • Última resposta de cor-el

more options

I would like to set proxy settings to all the firefox process for non-root users, Earlier i used to do this by adding below lines in /usr/lib64/firefox/defaults/preferences/channel-perf.js

pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg");

and creating mozilla.cfg file in /usr/lib64/firefox directory as followd

lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "127.0.0.1") lockPref("network.proxy.http_port", 3128) lockPref("network.proxy.share_proxy_settings", true)


How do i achieve the same in Firefox-26

I tried the following

In the /usr/lib64/firefox/browser/defaults/preferences directory, i created file channel-pref.js as follows pref("general.config.obscure_value", 0) pref("general.config.filename", "mozilla.cfg");


create mozilla.cfg file in /usr/lib64/firefox directory , then using moz-byteshift.pl i modified the mozilla.cfg moz-byteshift.pl -s 13 <mozilla.cfg.txt >mozilla.cfg

but it still doesn't work ,

Any information on how to make this work

I would like to set proxy settings to all the firefox process for non-root users, Earlier i used to do this by adding below lines in /usr/lib64/firefox/defaults/preferences/channel-perf.js pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); and creating mozilla.cfg file in /usr/lib64/firefox directory as followd lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "127.0.0.1") lockPref("network.proxy.http_port", 3128) lockPref("network.proxy.share_proxy_settings", true) How do i achieve the same in Firefox-26 I tried the following In the /usr/lib64/firefox/browser/defaults/preferences directory, i created file channel-pref.js as follows pref("general.config.obscure_value", 0) pref("general.config.filename", "mozilla.cfg"); create mozilla.cfg file in /usr/lib64/firefox directory , then using moz-byteshift.pl i modified the mozilla.cfg moz-byteshift.pl -s 13 <mozilla.cfg.txt >mozilla.cfg but it still doesn't work , Any information on how to make this work

Todas as respostas (1)

more options

It is best to leave the channel-prefs.js file alone and create a specific local-settings.js file to specify using mozilla.cfg in the defaults\pref folder where you also find the channel-prefs.js file.

pref("general.config.filename", "mozilla.cfg");

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

Note that only the first pref line you posted is ending with a semi colon.
Also make sure that the first line of mozilla.cfg is a comment line as this line is always skipped.

//
lockPref("network.proxy.type", 1);
lockPref("network.proxy.http", "127.0.0.1");
lockPref("network.proxy.http_port", 3128);
lockPref("network.proxy.share_proxy_settings", true);