Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

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

  • 1 Antwort
  • 0 haben dieses Problem
  • 8 Aufrufe
  • Letzte Antwort von 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!

Geändert am von fortuna90

Alle Antworten (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)

Hilfreich?

Stellen Sie eine Frage

Sie müssen sich mit Ihrem Benutzerkonto anmelden, um auf Beiträge zu antworten. Bitte stellen Sie eine neue Frage, wenn Sie noch kein Benutzerkonto haben.