Search Support

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

Which files of Firefox source code handles preferences at start up, shut down, and during abnormal crash?

  • 5 odgovori
  • 2 ima ovaj problem
  • 1 view
  • Posljednji odgovor poslao cor-el

more options

I am interested in how the preferences are loaded when firefox starts up and how the preferences are written to disk during a normal shut down?

I am also curious about how the preferences are handled during a abnormal crash when firefox is running.

Put another way, I would like to learn about the timeline of firefox preferences, including how they are loaded, maintained, and written to disk.

I am curious which parts of the firefox source code should I look at in order to study about how firefox preferences are handled at various time points? Thanks!

I am interested in how the preferences are loaded when firefox starts up and how the preferences are written to disk during a normal shut down? I am also curious about how the preferences are handled during a abnormal crash when firefox is running. Put another way, I would like to learn about the timeline of firefox preferences, including how they are loaded, maintained, and written to disk. I am curious which parts of the firefox source code should I look at in order to study about how firefox preferences are handled at various time points? Thanks!

All Replies (5)

more options

Hello jindongpu, Many of your personal settings and preferences are stored in this folder:

XP --

c:\Documents and Settings\{USER PROFILE}\Application Data\Mozila\Firefox\profiles\{PROFILE ID, IF THERE AREN'T ANY PROFILES, JUST DOUBLE CLICK THE ONLY ONE THAT LOOKS LIKE A IDENTIFIER (NUMBERS AND LETTERS)}\

Vista/7 --- c:\Users\{USER PROFILE}\AppData\Roaming\Mozilla\Firefox\profiles\{PROFILE ID}\

All files are stored in SQLite databases, except the bookmarks and some other files.

more options

Hi marcsances, thanks for your reply! The files you mentioned are actually used to store preferences. The content in those javascript files is basically key-value pairs of preferences.

What I am trying to find out is how these preferences are handled by Firefox at various time point, such as startup, normal running, normal shutdown, and abnormal crash. And I am interested in the source code that handles such cases.

more options

This is very similar to your earlier question. Did you try these resources?

How the preference branches are stored in firefox?

more options

Hi jscher2000, thanks for the link.

I actually tried mxr to lookup firefox source code. But it turns out not working very well. For example, if I want to learn more about a function by clicking the link of that function, mxr lists hundreds of references to that function, and I don't know which link is relevant.

more options