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

modified default preferences do not load properly(untill firefox is reset)

  • 4 réponses
  • 2 ont ce problème
  • 4 vues
  • Dernière réponse par stewievader

more options

i am trying to modify some of the default preferences loaded by firefox , using https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences (changing defaults section).

however after adding the file they will not load unless firefox is reset, though this should be necessary. same thing happens on a new profile until firefox is reset on there aswell

how do i get firefox to load these modified default preferences without having to go and reset firefox on every single user account.

i am trying to modify some of the default preferences loaded by firefox , using https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences (changing defaults section). however after adding the file they will not load unless firefox is reset, though this should be necessary. same thing happens on a new profile until firefox is reset on there aswell how do i get firefox to load these modified default preferences without having to go and reset firefox on every single user account.

Modifié le par stewievader

Toutes les réponses (4)

more options
more options

no i can save preferences just fine whether its in the default options menu or about:config.

the problem is when i place an all_xxxx.js file with modified default preferences in (install_directory/defaults/prefs/) Firefox does not load these modified pref's unless i use reset firefox under troubleshooting information. once i do that it loads the file just fine,but has to be done for every user account

since im unfamiliar with this its possible i misunderstood/messed up something, so heres a copy of that js file

more options

Files placed in /defaults/prefs/ are only copied to a newly created profile, so this behavior is to be expected.

If you want to modify prefs directly for all profiles then you need to use a mozilla.cfg file in the main Firefox program folder.


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

Modifié le par cor-el

more options

thanks,then that article needs to be changed...it states that it applys over new and existing profiles.