搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

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