From MozillaZine Knowledge Base
(Difference between revisions)
Revision as of 22:19, 9 March 2005
Regarding default values for prefs
There's a concept of Default preferences in Mozilla prefs system. I really like it and prefer using it over using methods like
When using 'defaults', wrong type of a preference or anything else that makes get*Pref method of nsIPrefBranch fail, is an exception and should be handled as such instead of just silently putting a hard-coded default value there.
Hi Asqueella, How does an extension install default preferences? I was trying to solve the problem which arises when default preferences do not exist.