Revert and WARN about autoconfig logPref

Apparently it's not allowed and as a result all settings specified there
vanish. Oops.

This reverts commit ae08cd834e.
This commit is contained in:
Aminda Suomalainen 2024-05-19 20:42:49 +03:00
parent ae08cd834e
commit c349dd04ef
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 14 additions and 9 deletions

View File

@ -1,9 +1,11 @@
// This file belongs to Firefox `default/pref` directory. // This file belongs to Firefox `default/pref` directory.
// E.g. /usr/lib64/firefox/defaults/pref/ or ~/.local/firefox/defaults/pref/ // E.g. /usr/lib64/firefox/defaults/pref/ or ~/.local/firefox/defaults/pref/
// WARNING: lockPref() IS NOT ALLOWED HERE!
// However the file below belongs to ../../ e.g. /usr/lib/64/firefox/ or // However the file below belongs to ../../ e.g. /usr/lib/64/firefox/ or
// ~/.local/firefox/ // ~/.local/firefox/
//lockPref("general.config.filename", "librewolf.overrides.cfg"); //pref("general.config.filename", "librewolf.overrides.cfg");
lockPref("general.config.filename", "firefox-forbidden-policies.js"); pref("general.config.filename", "firefox-forbidden-policies.js");
lockPref("general.config.obscure_value", 0); pref("general.config.obscure_value", 0);
// vim: filetype=javascript // vim: filetype=javascript

View File

@ -1,9 +1,12 @@
// This file belongs to Firefox `default/pref` directory as `autoconfig.js`. // This file belongs to Firefox `default/pref` directory as `autoconfig.js`.
// E.g. /usr/lib64/firefox/defaults/pref/autoconfig.js // E.g. /usr/lib64/firefox/defaults/pref/autoconfig.js
//lockPref("autoadmin.global_config_url","https://gitea.blesmrt.net/mikaela/shell-things/raw/branch/master/conf/firefox-forbidden-policies.js");
lockPref("autoadmin.global_config_url","file:///home/aminda/public_html/autoconfig.js"); // WARNING: lockPref() IS NOT ALLOWED HERE!
lockPref("general.config.obscure_value", 0);
lockPref("autoadmin.refresh_interval", 120); //pref("autoadmin.global_config_url","https://gitea.blesmrt.net/mikaela/shell-things/raw/branch/master/conf/firefox-forbidden-policies.js");
lockPref("autoadmin.offline_failover", true); pref("autoadmin.global_config_url","file:///home/aminda/public_html/autoconfig.js");
lockPref("autoadmin.failover_to_cached", true); pref("general.config.obscure_value", 0);
pref("autoadmin.refresh_interval", 120);
pref("autoadmin.offline_failover", true);
pref("autoadmin.failover_to_cached", true);
// vim: filetype=javascript // vim: filetype=javascript