Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

differences and interchangibility of pref(); user_pref(); and lockPref();

  • 1 svar
  • 0 har detta problem
  • 8 visningar
  • Senaste svar av Mike Kaply

more options

Firefox is used on Windows 11 Enterprise. There is a firefox.cfg in the installation directory (and an autoconfig.js in the ./defaults/pref sub-directory). The firefox.cfg targets an autoconfigfile.js. This setup is recommended here: [firefox using autoconfig"]

  1. In the support article´s example, the firefox.cfg uses a pref(); expression. Is it possible to use a lockPref(); expression instead?
  2. What is the result of either using pref(); expressions or user_pref(); expressions in the remoted autoconfigfile.js? Are both of them possible, especially while the firefox.cfg uses lockPref(); expressions instead of pref();?

I hope that somesone can help with one of these questions. Thanks a lot!

Firefox is used on Windows 11 Enterprise. There is a ''firefox.cfg'' in the installation directory (and an ''autoconfig.js'' in the ./defaults/pref sub-directory). The ''firefox.cfg'' targets an ''autoconfigfile.js''. This setup is recommended here: [[https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig#w_centralized-management|"customizing firefox using autoconfig"]] # In the support article´s example, the ''firefox.cfg'' uses a '''pref();''' expression. Is it possible to use a '''lockPref();''' expression instead? # What is the result of either using '''pref();''' expressions or '''user_pref();''' expressions in the remoted ''autoconfigfile.js''? Are both of them possible, especially while the ''firefox.cfg'' uses '''lockPref(); '''expressions instead of '''pref();'''? I hope that somesone can help with one of these questions. Thanks a lot!

Ändrad av fortuna90

Alla svar (1)

more options

The cfg files and a regular pref file are two completely different things (event though the syntax looks similar at first glance)

The CFG file is running Javascript and calling functions to execute the various things (like lockPref).

The autoconfigfile.js is a specific JS file format used for storing preferences.

To answer your specific questions.

1. Per that article, you can use any of the functions in a CFG file like pref, lockPref, defaultPref, etc. 2. In a regular JS file, pref sets a default pref (defaultPref in an autoconfig file) and user_pref sets a user preference (pref in an autoconfig file)

Hjälpsam?

Ställ en fråga

Du måste logga in på ditt konto för att svara på inlägg. Vänligen starta en ny fråga om du inte har ett konto ännu.