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

Add general pref guidance #649

Open
jaredlockhart opened this issue Nov 19, 2024 · 0 comments
Open

Add general pref guidance #649

jaredlockhart opened this issue Nov 19, 2024 · 0 comments

Comments

@jaredlockhart
Copy link
Contributor

Let's add this on the desktop Feature configuration docs as general guidance for using prefs:

  1. Avoid using a pref in the first place and read directly from Nimbus API variables when possible.
  2. If you must use a pref, there should be no more than 1 writer per 1 pref (ie code, remote setting, manual interaction in about:config). If a pref must be written to by multiple writers, consider using multiple prefs instead to maintain the 1 pref : 1 writer relationship.
  3. Avoid guiding users to manually interact with and set prefs in about:config. This can weaken security practices by normalizing users to interact with complex 'under the hood' settings which can be taken advantage of by malicious actors. In addition, manually interacting with prefs that are managed by code can create confusing situations for users where their changes are overwritten or reverted.
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

1 participant