You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 2038991 - Update Cache when calling register_previous_gecko_pref_states (#7369)
Bug 2021137 removed end_initialize and set `writer.commit()` to prevent
a loop. However, this change had a side-effect of a stale cache.
This patch fixes it by:
* Adding a param of `update_gecko_prefs` to `commit_and_update`
* Having `register_previous_gecko_pref_states` call `commit_and_update`
with `update_gecko_prefs=false`
* Updating `map_gecko_prefs_to_enrollment_slugs_and_update_store` to take a
param of `update_gecko_prefs`, when false, it will not set information with
Gecko
// setting with Gecko is used for true updates, sometimes the state just needs to be recalculated (e.g., registering the original value on the enrollment)
331
+
if update_gecko_prefs {
332
+
// obtain a list of all Gecko pref states for which there is an enrollment value
0 commit comments