Closed Bug 2071254 Opened 2 months ago Closed 1 month ago

The review prompt is not displayed to users who already completed onboarding pre-continuous onboarding being enabled

Categories

(Firefox for Android :: Onboarding, defect, P1)

All
Android
defect
Points:
8

Tracking

()

VERIFIED FIXED
159 Branch
Tracking Status
firefox159 --- verified

People

(Reporter: towhite, Assigned: towhite)

References

()

Details

(Whiteboard: [fxdroid] [android-activation-trust])

Attachments

(4 external files, 2 obsolete files)

Firefox 155 enabled continuous onboarding by default, but the review prompt eligibility logic did not account for two groups of users:

  • Users who completed onboarding before continuous onboarding was introduced.
  • Users who are not enrolled in the VPN/IP Protection feature and therefore cannot complete the day-7 stage.

As a result, neither group receives the review prompt.

This investigation also uncovered a separate issue: users on Firefox 150–154 may be shown continuous onboarding even though the feature was not yet enabled by default.

See the QA guidance document for testing details.

Assignee: nobody → towhite
Status: NEW → ASSIGNED
Blocks: 2071263
No longer blocks: 2071263
See Also: → 2071263
Whiteboard: [fxdroid] [android-activation-trust]
Attachment #9640996 - Attachment description: WIP: Bug 2071254 - Allow the review prompt to be displayed to users who completed onboarding pre-continuous onboarding. → Bug 2071254 - Allow the review prompt to be displayed to users who completed onboarding pre-continuous onboarding.
Attachment #9640996 - Attachment is obsolete: true

Onboarding Completion States After Continuous Onboarding

Terminology

  • Initial onboarding: The flow shown when a user first opens the app after a fresh install.
  • Continuous onboarding: The follow-up onboarding stages shown over subsequent days after
    initial onboarding.

Overview

Version 150 introduced the following preferences for continuous onboarding, but the feature
itself was not enabled until version 155.

Preference Purpose
Settings.onboardingCompletedTimestamp Records when initial onboarding finished.
Settings.continuousOnboardingFeatureEnabled Tracks whether continuous onboarding is enabled for the user.
Settings.secondDayOnboardingCompletedTimestamp Records completion of the day-2 stage.
Settings.thirdDayOnboardingCompletedTimestamp Records completion of the day-3 stage.
Settings.fifthDayOnboardingCompletedTimestamp Records completion of the day-5 stage.
Settings.seventhDayOnboardingCompletedTimestamp Records completion of the day-7 stage.

The gap between introducing these preferences and enabling the feature created different stored
completion states depending on when users first onboarded.

The issue

Gating features or behavior on onboarding progress is unreliable because the stored preferences
do not consistently reflect the user's onboarding journey.

Two separate mechanisms represent initial onboarding completion:

  • FenixOnboarding.userHasBeenOnboarded() checks whether
    onboardedVersion == CURRENT_ONBOARDING_VERSION, including when the onboarding UI was bypassed.
    Despite its name suggesting that it stores a version, the value is only ever set to 0 or 1 and
    is ultimately used as a Boolean flag.
  • Settings.onboardingCompletedTimestamp records when initial onboarding finished.
    A value of -1L means no completion timestamp was recorded.

A user can therefore be considered onboarded without a completion timestamp. Others have a valid
initial timestamp but unset continuous onboarding stage timestamps because the feature was disabled
when they onboarded.

These differences affect features that depend on onboarding completion or elapsed time.

For example, ReviewPromptMiddleware's continuousOnboardingInProgress gate hides the review
prompt when continuousOnboardingFeatureEnabled is true and
seventhDayOnboardingCompletedTimestamp is -1L.

Some users never see continuous onboarding at all, so the day-7 stage is never marked complete for
them. When continuousOnboardingFeatureEnabled is true, the review prompt therefore remains
blocked indefinitely for those users (see User cohorts below for which users this
affects).

The day-7 stage itself had a related gap, independent of cohort: it only completed once the user
became eligible for IP Protection and IPProtectionOnboardingPrompt.onShowOnboarding fired. A user
who is permanently ineligible (Nimbus config or unsupported region) never reaches that callback, so
even a cohort 3 user progressing normally through the earlier stages could get stuck at day 7
indefinitely, blocking the review prompt the same way. The same applied to an eligible user for whom
IPProtectionPromptRepository.canShowIPProtectionPrompt() returns false, for example because the
prompt was already shown outside continuous onboarding or the VPN was already used. This was fixed by
also marking the day-7 stage complete when eligibility resolves to a terminal ineligible state, or
when the user is eligible but the prompt is no longer allowed to be shown.

User cohorts

All four cohorts return true from userHasBeenOnboarded(), including users marked as onboarded
without completing the initial onboarding UI. The table describes their state before reconciliation.

# Cohort Initial completion timestamp Continuous onboarding stage timestamps Currently eligible for continuous onboarding? Should be eligible for continuous onboarding?
1.a Completed initial onboarding before version 150 Unset (-1L) All unset No No
1.b Marked as onboarded through a path that bypasses the initial onboarding UI Unset (-1L) All unset No No
2 Completed initial onboarding while continuous onboarding was disabled, such as in versions 150–154 Recorded Initially unset; populated as stages are completed Yes No
3 Completed initial onboarding with continuous onboarding enabled Recorded None, some, or all recorded, depending on progress Yes Yes

Cohorts 1.a and 1.b should not see continuous onboarding. However, their unset stage timestamps can
still incorrectly block the review prompt when continuousOnboardingFeatureEnabled is true.

Cohort 2 is currently incorrectly eligible for continuous onboarding but should be treated as complete.
Cohort 3 should continue through its remaining stages normally.

Eligibility does not guarantee that a stage will be shown. Displaying a stage also depends on
the user's progress and the conditions for that stage.

Unset stage timestamps are not inherently incorrect: they can represent normal progress. The issue
is distinguishing that state from missing records or stages that were unavailable at onboarding.

Paths that bypass initial onboarding

This is how a user ends up in cohort 1.b.

BaseBrowserFragment.observeTabSource(), formerly in browser/BaseBrowserFragment.kt, used to call
FenixOnboarding.finish() without recording onboardingCompletedTimestamp whenever:

  • The user had not already been marked as onboarded.
  • The tab was neither from a redirect nor an external source.
  • The URL was neither of the onboarding-related links in onboardingLinksList.

For example, a user could enter this state by accepting the Terms of Use without completing the
remaining onboarding steps, closing Firefox, and then performing a voice search through the Firefox
home-screen widget. This opened a tab directly and triggered FenixOnboarding.finish(), bypassing
the rest of onboarding without recording onboardingCompletedTimestamp. The next time the user
opened Firefox, they were considered onboarded despite the timestamp remaining unset.

Bug 2072686 removed this bypass, so cohort 1.b
is now purely historical: no new installations can enter it, but existing installations already in
that state still require the migration described below.

AutomatedLaunch.disableOnboarding() also bypasses initial onboarding, but is used only by internal
tools and is outside this discussion's scope.

Direction for resolution

The goal is to make onboarding state reliable for downstream checks:

  • Backfill the initial completion timestamp for cohorts 1.a, 1.b, and 2 to a known state using a fixed
    release-channel date (version 150's release, when the onboarding-completion-timestamp preferences
    were introduced), since it predates continuous onboarding for every affected user regardless of
    when they actually onboarded. This overwrites cohort 2's real initial timestamp, but nothing
    outside continuous onboarding depends on that timestamp being genuine for these users.
  • Mark continuous onboarding as complete for cohorts 1.a, 1.b, and 2 by populating all four stage
    timestamps with the same fixed backfill date used above. This prevents further stages from
    appearing, and cohorts 1.a, 1.b, and 2 end up in the exact same, fully-backfilled state.
  • Preserve cohort 3's existing progress.
  • Ensure normal completion and UI-bypass paths consistently record the relevant state.
  • Make migrated users recognizable without a dedicated tracking preference: since every backfilled
    field is set to the same fixed timestamp, future fixes can identify this cohort by comparing any
    of them against that known value.

Reconciled timestamps should avoid making existing users appear newly onboarded. Stage timestamps
populated by migration represent completion markers, not evidence that the user saw those stages.

Cohorts 1.a and 1.b share the same missing-timestamp state. If their original cohort cannot be reliably
determined, migration tracking should preserve that uncertainty.

Blocks: 2072667
See Also: → 2072667
See Also: 2072667 →
See Also: → 2072686
Attachment #9643381 - Attachment description: WIP: Bug 2071254 - Part 3: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled. → WIP: Bug 2071254 - Part 2: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled.
Attachment #9643379 - Attachment description: WIP: Bug 2071254 - Part 1: Document onboarding completion states after the continuous onboarding rollout. → WIP: Bug 2071254 - Part 1: Document onboarding completion states following the continuous onboarding rollout.
Attachment #9643380 - Attachment description: WIP: Bug 2071254 - Part 2: Mark continuous onboarding complete for users who onboarded before its release. → WIP: Bug 2071254 - Part 2: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled.
Attachment #9643381 - Attachment description: WIP: Bug 2071254 - Part 2: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled. → WIP: Bug 2071254 - Part 3: Mark day-7 continuous onboarding complete for users ineligible for IP Protection.
Attachment #9644590 - Attachment is obsolete: true
Attachment #9643379 - Attachment description: WIP: Bug 2071254 - Part 1: Document onboarding completion states following the continuous onboarding rollout. → Bug 2071254 - Part 1: Document onboarding completion states following the continuous onboarding rollout.
Attachment #9643380 - Attachment description: WIP: Bug 2071254 - Part 2: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled. → Bug 2071254 - Part 2: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled.
Attachment #9643381 - Attachment description: WIP: Bug 2071254 - Part 3: Mark day-7 continuous onboarding complete for users ineligible for IP Protection. → Bug 2071254 - Part 3: Mark day-7 continuous onboarding complete for users ineligible for IP Protection.
Blocks: 2074040
Attachment #9645810 - Attachment description: WIP: Bug 2071254 - Part 4: Remove the now-redundant week-based gate from IPProtectionPromptRepository. → Bug 2071254 - Part 4: Remove the now-redundant week-based gate from IPProtectionPromptRepository.
Points: --- → 5
Blocks: 2074411
Attachment #9643381 - Attachment description: Bug 2071254 - Part 3: Mark day-7 continuous onboarding complete for users ineligible for IP Protection. → Bug 2071254 - Part 3: Mark day-7 continuous onboarding complete for users ineligible for IP Protection or who can no longer be shown its prompt.
Points: 5 → 8
Attachment #9645810 - Attachment description: Bug 2071254 - Part 4: Remove the now-redundant week-based gate from IPProtectionPromptRepository. → Bug 2071254 - Part 4: Remove the now-redundant week-based gate from `IPProtectionPromptRepository`.
See Also: → 2076210
See Also: → 2076729
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/560a08cbc86b https://hg.mozilla.org/integration/autoland/rev/1e9c6e8c349c Part 1: Document onboarding completion states following the continuous onboarding rollout. r=android-reviewers,gmalekpour,marcin https://github.com/mozilla-firefox/firefox/commit/f8fac4b17db7 https://hg.mozilla.org/integration/autoland/rev/c714ae051718 Part 2: Migrate pre-continuous-onboarding users' preferences to ensure a consistent state for all users after continuous onboarding was enabled. r=android-reviewers,gmalekpour,marcin https://github.com/mozilla-firefox/firefox/commit/d0e62d55e8d3 https://hg.mozilla.org/integration/autoland/rev/a3b7641d3c42 Part 3: Mark day-7 continuous onboarding complete for users ineligible for IP Protection or who can no longer be shown its prompt. r=android-reviewers,gmalekpour https://github.com/mozilla-firefox/firefox/commit/8c3c8aa3d5df https://hg.mozilla.org/integration/autoland/rev/944167d756fe Part 4: Remove the now-redundant week-based gate from `IPProtectionPromptRepository`. r=android-reviewers,gmalekpour

This issue has been verified as fixed on Firefox for Android Nightly 159 (2026-10-01) using a Samsung S24 Ultra (Android 16). I’m confirming that the review prompt is successfully displayed across all cohorts, but one follow-up issue was found regarding an additional display of the "Set as default" card:

  • Cohort 1a (Updating from 149): no issues
  • Cohort 1b (Updating from 152 via widget bypass): no issues
  • Cohort 2 (Updating from 152): bug 2076729
  • Cohort 3 (159 fresh install): no issues
  • Cohort 4 (Updating from 155): bug 2076729
Status: RESOLVED → VERIFIED
Blocks: 2079256
Blocks: 2079887
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: