mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
ec11171950
This patch changes our preference look-up behavior to first check the dynamic hashtable, and then fall back to the shared map. In order for this to work, we need to make several other changes as well: - Attempts to modify a preference that only exists in the shared table requires that we copy it to the dynamic table, and change the value of the new entry. - Attempts to clear a user preference with no default value, but which also exists in the shared map, requires that we keep an entry in the dynamic table to mask the shared entry. To make this work, we change the type of these entries to None, and ignore them during look-ups and iteration. - Iteration needs to take both hashtables into consideration. The serialization iterator for changed preferences only needs to care about dynamic values, so it remains unchanged. Most of the others need to use PrefsIter() instead. MozReview-Commit-ID: 9PWmSZxoC9Z --HG-- extra : intermediate-source : b4f9178f132de2b5f7064df9a9e1b489ea6576c3 extra : absorb_source : 57fd90ea8195adff9d314b813e94dc643fd085e4 extra : source : 5051f15fc2005667cfe76ccae0afb1fb0657c103 extra : histedit_source : 2ebf0e90a5e1b65795b20e9269def7cbbf2d1f11 |
||
---|---|---|
.. | ||
data | ||
extdata | ||
head_libPrefs.js | ||
test_bug345529.js | ||
test_bug506224.js | ||
test_bug577950.js | ||
test_bug790374.js | ||
test_bug1354613.js | ||
test_changeType.js | ||
test_defaultValues.js | ||
test_dirtyPrefs.js | ||
test_libPrefs.js | ||
test_locked_file_prefs.js | ||
test_parser.js | ||
test_stickyprefs.js | ||
test_warnings.js | ||
xpcshell.ini |