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.
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. readDefaultPref sFromFile, to match the readUserPrefsFr omFile method, and converts a number of
existing nsIPrefService.
the existing tests to use it.
Review commit: https:/ /reviewboard. mozilla. org/r/225184/ diff/#index_ header /reviewboard. mozilla. org/r/225184/
See other reviews: https:/