Comment 62 for bug 541951

Revision history for this message
In , Nicholas Nethercote (n-nethercote) wrote :

Created attachment 8956310
Bug 440908 - Add support for `sticky` and `locked` attributes to default prefs.

Sticky prefs are already specifiable with `sticky_pref`, but this is a more
general attribute mechanism. The ability to specify a locked pref in the data
file is new.

The patch also adds nsIPrefService.readDefaultPrefsFromFile, to match the
existing nsIPrefService.readUserPrefsFromFile method, and converts a number of
the existing tests to use it.

Review commit: https://reviewboard.mozilla.org/r/225184/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/225184/