From c349dd04ef6c6f03af9ba49a9f0a1cd062034d2a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 19 May 2024 20:42:49 +0300 Subject: [PATCH] Revert and WARN about autoconfig logPref Apparently it's not allowed and as a result all settings specified there vanish. Oops. This reverts commit ae08cd834ecea27b1dd2976e1a975612546a7405. --- conf/autoconfig.js | 8 +++++--- conf/autoconfig.js.online | 15 +++++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/conf/autoconfig.js b/conf/autoconfig.js index 8d5bc380..d0aa9b53 100644 --- a/conf/autoconfig.js +++ b/conf/autoconfig.js @@ -1,9 +1,11 @@ // This file belongs to Firefox `default/pref` directory. // 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 // ~/.local/firefox/ -//lockPref("general.config.filename", "librewolf.overrides.cfg"); -lockPref("general.config.filename", "firefox-forbidden-policies.js"); -lockPref("general.config.obscure_value", 0); +//pref("general.config.filename", "librewolf.overrides.cfg"); +pref("general.config.filename", "firefox-forbidden-policies.js"); +pref("general.config.obscure_value", 0); // vim: filetype=javascript diff --git a/conf/autoconfig.js.online b/conf/autoconfig.js.online index 8f199f15..49d69cae 100644 --- a/conf/autoconfig.js.online +++ b/conf/autoconfig.js.online @@ -1,9 +1,12 @@ // This file belongs to Firefox `default/pref` directory as `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"); -lockPref("general.config.obscure_value", 0); -lockPref("autoadmin.refresh_interval", 120); -lockPref("autoadmin.offline_failover", true); -lockPref("autoadmin.failover_to_cached", true); + +// WARNING: lockPref() IS NOT ALLOWED HERE! + +//pref("autoadmin.global_config_url","https://gitea.blesmrt.net/mikaela/shell-things/raw/branch/master/conf/firefox-forbidden-policies.js"); +pref("autoadmin.global_config_url","file:///home/aminda/public_html/autoconfig.js"); +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