User.js: Investigate "locked" and "sticky" pref options

Created on 9 Sep 2018  路  2Comments  路  Source: pyllyukko/user.js

I upgrade to Firefox 60 ESR on Debian today and saw the following changes in the debian-provided default firefox-esr.js file:

+++ /etc/firefox-esr/firefox-esr.js.dpkg-new    2018-09-07 11:21:32.000000000 +0200
@@ -1,1268 +1,30 @@
+// This is the Debian specific preferences file for Firefox ESR
+// You can make any change in here, it is the purpose of this file.
+// You can, with this file and all files present in the
+// /etc/firefox-esr directory, override any preference you can see in
+// about:config.
 //
-/******************************************************************************
- * user.js                                                                    *
- * https://github.com/pyllyukko/user.js                                       *
- ******************************************************************************/
+// Note that pref("name", value, locked) is allowed in these
+// preferences files if you don't want users to be able to override
+// some preferences.
- ...
+// Use LANG environment variable to choose locale
+pref("intl.locale.requested", "");
- ...
+// Default to classic view for about:newtab
+pref("browser.newtabpage.enhanced", false, sticky);

Notice the addition of a help text about locked prefs, and the sticky flag on browser.newtabpage.enhanced.

I don't know how to use these flags, could it be a replacement for the current locked prefs setup procedure?

Most helpful comment

apt-listchanges: News
---------------------

firefox-esr (60.0esr-1) unstable; urgency=medium

  * The use of `lockPref` in preferences under /etc/firefox-esr is deprecated.
    Please use `pref("name", value, locked)` instead. `lockPref` will still
    be supported for compatibility purpose until version 67.

 -- Mike Hommey <[email protected]>  Thu, 10 May 2018 09:36:46 +0900

All 2 comments

apt-listchanges: News
---------------------

firefox-esr (60.0esr-1) unstable; urgency=medium

  * The use of `lockPref` in preferences under /etc/firefox-esr is deprecated.
    Please use `pref("name", value, locked)` instead. `lockPref` will still
    be supported for compatibility purpose until version 67.

 -- Mike Hommey <[email protected]>  Thu, 10 May 2018 09:36:46 +0900

Check the package changelog, it mentiones that the old way will be replaced by this new way.
Probably the whole functionality is being removed by Mozilla, and the debian-esr team adds a replacement back....
@pyllyukko lol you beat me while i was writing :+1:

I'm using FF 64 at the time, so i need a replacement for FF soon...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sprvoll2cx86 picture sprvoll2cx86  路  6Comments

nodiscc picture nodiscc  路  8Comments

brakenow picture brakenow  路  3Comments

thefleebs picture thefleebs  路  4Comments

e-t-l picture e-t-l  路  4Comments