Recently, my /etc/firefox/syspref.js
stopped being applied.
Unlike on Windows, where configuration errors results in
Failed to read the configuration file. Please contact your system administrator.
on my Ubuntu machines, firefox just silently ignores my settings.
Launching with the -jsconsole
switch reveals
** Preference parsing error (line 1) = non-matching string **
I did not make any changes to my /etc/firefox/syspref.js
file. It did work in Firefox 58 and stopped working with the first Firefox 59 version. My file contains
// first line is ignored
lockPref("browser.startup.homepage", "https://example.org/");
What can i do to
- temporarily mitigate the problem: Make firefox read my config again?
- permanently solve the problem: Prevent firefox from starting with invalid configuration when it encounters syntax errors in my system-wide config?
I found out that you now have to use
pref("...","...",locked);
instead oflockPref("...","...");
.Example
syspref.js
(working in Firefox 61 on Linux Mint):In recent versions, it seems that Mozilla changed the managed preferences again. My syspref.js is ignored in version 98. Now, you have to use the JSON policies (create a file
/etc/firefox/policies/policies.json
with some setting described in the linked GitHub repo).