Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate "locked" and "sticky" pref options #415

Closed
nodiscc opened this issue Sep 9, 2018 · 3 comments
Closed

Investigate "locked" and "sticky" pref options #415

nodiscc opened this issue Sep 9, 2018 · 3 comments

Comments

@nodiscc
Copy link
Contributor

nodiscc commented Sep 9, 2018

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?

@pyllyukko
Copy link
Owner

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

@TriMoon
Copy link

TriMoon commented Sep 9, 2018

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 👍

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

@nodiscc
Copy link
Contributor Author

nodiscc commented Oct 24, 2021

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

use of the sticky flag has not been clarified. I will open a new issue -> #527

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants