Open Bug 1822083 Opened 2 years ago Updated 2 years ago

Adding a mirror: once StaticPref results in Assertion failure: staticPrefValue == preferenceValue

Categories

(Core :: Preferences: Backend, defect)

defect

Tracking

()

People

(Reporter: tschuster, Unassigned)

References

Details

In bug 1709867 I tried to add a new mirror: once StaticPref called privacy.resistFingerprinting.testing.setTZtoUTC. That results in an assertion failure for different prefs on try:

Assertion failure: staticPrefValue == preferenceValue (Preference 'security.sandbox.content.headless' got modified since StaticPrefs::security_sandbox_content_headless_AtStartup was initialized. Consider using an always mirror kind instead),

Assertion failure: staticPrefValue == preferenceValue (Preference 'gfx.webrender.software' got modified since StaticPrefs::gfx_webrender_software_AtStartup was initialized. Consider using an always mirror kind instead)

My new pref was not being set anywhere and changing it to mirror: always made the assertions go away.

The severity field is not set for this bug.
:KrisWright, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(kwright)

This looks like it is because of a known issue with preferences where once mirrored prefs do not behave as expected at startup. This is related to startup order and when the service is intiialized.

Severity: -- → S4
Flags: needinfo?(kwright)
You need to log in before you can comment on or make changes to this bug.