gecko-dev/image/test
Nicholas Nethercote 7974362afd Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm
Currently it's completely unclear at use sites that the getters for `once`
static prefs return the pref value from startup, rather than the current pref
value. (Bugs have been caused by this.) This commit improves things by changing
the getter name to make it clear that the pref value obtained is from startup.

This required changing things within libpref so it distinguishes between the
"base id" (`foo_bar`) and the "full id" (`foo_bar` or
`foo_bar_DoNotUseDirectly` or `foo_bar_AtStartup` or
`foo_bar_AtStartup_DoNotUseDirectly`; the name used depends on the `mirror` and
`do_not_use_directly` values in the YAML definition.) The "full id" is used in
most places, while the "base id" is used for the `GetPrefName_*` and
`GetPrefDefault_*` functions.

(This is a nice demonstration of the benefits of the YAML file, BTW. Making
this change with the old code would have involved adding an entry to every
single pref in StaticPrefList.h.)

The patch also rejigs the comment at the top of StaticPrefList.yaml, to clarify
some things.

Differential Revision: https://phabricator.services.mozilla.com/D38604

--HG--
extra : moz-landing-system : lando
2019-07-22 02:10:14 +00:00
..
browser Bug 1561435 - Format image/, a=automatic-formatting 2019-07-05 10:47:38 +02:00
crashtests Bug 1532813 - expect fail for last_test_to_unload_testsuite for windows10-aarch64 r=jmaher 2019-04-03 20:36:41 +00:00
fuzzing Bug 1561347 - Split image fuzzing target into one target per format. r=aosmond 2019-06-28 11:18:48 +00:00
gtest Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm 2019-07-22 02:10:14 +00:00
mochitest Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8 2019-07-15 16:19:32 -07:00
reftest Bug 1560617 - Disable trc-type.html on windows 7 for frequent failures r=jmaher 2019-07-09 14:51:05 +00:00
unit Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00