Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox source code: How Do I set custom preferences or settings?

  • 3 replies
  • 0 have this problem
  • 132 views
  • Last reply by Sytaxian

I have built firefox using mozillabuild but I want the change the default settings or preferences, for example the homepage or more preferences page. I want to do this directly from the code.

I have built firefox using mozillabuild but I want the change the default settings or preferences, for example the homepage or more preferences page. I want to do this directly from the code.
Attached screenshots

Chosen solution

I've locked your previous thread about this issue.

Note that you need to make these changes each time Firefox is updated to stay safe and get the latest security updates.

Newer prefs are set in StaticPrefList.yaml as opposed to firefox.js and all.js. There are also prefs that aren't set by default and will only appear in about:config when user set. See also:

Read this answer in context 👍 2

All Replies (3)

If you know the names of the preferences you want to modify -- after making changes interactively, view the modified preferences in about:config -- you should be able to find them set to their default values somewhere in the source code.

Chosen Solution

I've locked your previous thread about this issue.

Note that you need to make these changes each time Firefox is updated to stay safe and get the latest security updates.

Newer prefs are set in StaticPrefList.yaml as opposed to firefox.js and all.js. There are also prefs that aren't set by default and will only appear in about:config when user set. See also:

Thank you! , I may need more help later on.