Day-7 continuous onboarding can be marked complete before the user's region is known, so eligible users never see the IP Protection onboarding prompt
Categories
(Firefox for Android :: Onboarding, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: towhite, Assigned: towhite)
References
Details
(Whiteboard: [fxdroid] [android-activation-trust])
Attachments
(1 external file, 2 obsolete files)
Bug 2071254 part 3 adds an onIneligible callback to IPProtectionOnboardingPrompt, fired when EligibilityStatus resolves to Ineligible or UnsupportedRegion, and ContinuousOnboardingFeature wires it to mark the day-7 stage complete. That write is one-way: once seventhDayOnboardingCompletedTimestamp is set, the day-7 stage never re-enters and the IP Protection onboarding prompt, whose only entry point is that stage, is never shown.
FenixIPProtectionEligibilityStorage computes eligibility as region?.home in nimbus.allowedRegions. At cold start BrowserState.search.region is null until RegionMiddleware finishes reading the cached region on the IO dispatcher, and a null region makes that check false. So every user with IP Protection enabled in Nimbus briefly reports UnsupportedRegion before flipping to their real status. There is an explicit test asserting the null region behaviour, so this is deliberate in the storage.
Before part 3 that transient value was harmless: IPProtectionFeature calls uninit() and re-initialises when the status changes. After part 3, if the day-7 binding starts while the region is still null, an eligible user has day 7 marked complete on the placeholder value. The onboarding.day_seven_completed event from bug 2072667 records this as completion_reason ineligible, so the telemetry would also be skewed.
The window is between HomeFragment starting ContinuousOnboardingFeature and the cached region read completing. That read starts during Application.onCreate, so the race is narrow, but the write cannot be undone and fails silently.
Options considered:
- Have
IPProtectionOnboardingPromptwait forUnsupportedRegionto persist for a settle window before callingonIneligible, cancelled by any status change. Self-contained but heuristic. - Pass a
BrowserStoreinto the prompt viaIPProtectionOnboardingConfigand only treatUnsupportedRegionas final oncesearch.regionis non-null. Deterministic; touchesContinuousOnboardingFeature. - Have
FenixIPProtectionEligibilityStoragereportUnknownwhile the region isnull. Cleanest semantically, but changes eligibility behaviour owned by the IP Protection feature.
Ineligible from the Nimbus config does not depend on region and can stay immediate in any of these.
Updated•2 months ago
|
The eligibility storage reported UnsupportedRegion until the browser store's region was set, which only happens in
HomeActivity.onResume, after the day-7 continuous onboarding binding has already started. That transient value is
indistinguishable from a genuinely unsupported region and permanently marked the day-7 stage complete for eligible
users.
Updated•2 months ago
|
Updated•2 months ago
|
The eligibility storage reported UnsupportedRegion until the browser store's region was set, which only happens in
HomeActivity.onResume, after the day-7 continuous onboarding binding has already started. That transient value is
indistinguishable from a genuinely unsupported region and permanently marked the day-7 stage complete for eligible
users.
Updated•2 months ago
|
The eligibility storage reported UnsupportedRegion until the browser store's region was set, which only happens in
HomeActivity.onResume, after the day-7 continuous onboarding binding has already started. That transient value is
indistinguishable from a genuinely unsupported region and permanently marked the day-7 stage complete for eligible
users.
Updated•2 months ago
|
Description
•