Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How the preference branches are stored in firefox?

  • 2 个回答
  • 2 人有此问题
  • 13 次查看
  • 最后回复者为 cor-el

more options

I have a question related to firefox preferences.

From the firefox online documentations and tutorial, I learned that firefox organizes its preferences options as branches. Put another way, preferences are organized hierarchically. I noticed that there are some methods interfacing with a hash table.

I am curious how exactly the preferences are stored in firefox source code? What types of data structures are used to store them? Which file should I look at? Thanks!

I have a question related to firefox preferences. From the firefox online documentations and tutorial, I learned that firefox organizes its preferences options as branches. Put another way, preferences are organized hierarchically. I noticed that there are some methods interfacing with a hash table. I am curious how exactly the preferences are stored in firefox source code? What types of data structures are used to store them? Which file should I look at? Thanks!

由jindongpu于修改

所有回复 (2)

more options

You can explore the source code on this site:

http://mxr.mozilla.org/mozilla-release/

Simply search for the full name of a preference of interest to see how defaults are set and accessed.

more options

You can also inspect the page source of the about:config page to see how that page gets constructed

  • chrome://global/content/config.js