Loading
Bug 2045853 - Trigger postEnrolmentCalculation() on all enrollment changes (#7405)
`postEnrolmentCalculation()` is responsible for recording the active experiments and triggering the `onUpdatesApplied` observer -- which is in turn used to invalidate the FML feature cache. Several enrolment change mechanisms were not properly triggering `onUpdatesApplied`, which has lead to stale feature value caching issues (see-also https://github.com/mozilla-mobile/fenix/issues/21838). These issues have been band-aided by calling applyPendingExperiments() in most cases, which results in ~correct behaviour but does a double update. Now we trigger `postEnrolmentCalculation()` and therefore feature invalidation on all enrollment changes.