Closed Bug 2095146 Opened 5 days ago Closed 17 hours ago

The homepage is briefly displayed while redirecting from the sync card to the 'Sign in via email' screen

Categories

(Firefox for Android :: Accounts and Sync, defect)

Firefox 162
All
Android
defect
Points:
2

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox162 --- fixed
firefox163 --- fixed

People

(Reporter: vtamas, Assigned: corentin)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file, 2 external files)

Steps to reproduce

  1. Install the Firefox app on Android by scanning the QR code from desktop.
  2. Open the app and go through the first 2 onboarding cards.
  3. Tap on "Sign in with email" button from Consolidated Sync card.

Expected behavior

The user is automatically redirected to Sign in page.

Actual behavior

The homepage is displayed for a few seconds while redirecting from the sync card to the 'Sign in via email' screen.

Device information

  • Firefox version: Firefox for Android Nightly 162 (2026-11-19)
  • Android device model: Samsung S24 Ultra (Android 16)
Assignee: nobody → cbect
Status: NEW → ASSIGNED
Points: --- → 2
Whiteboard: [fxdroid] [android-activation-trust]
Status: ASSIGNED → RESOLVED
Closed: 17 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

The patch landed in nightly and beta is affected.

:corentin, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox162 to wontfix if the fix can wait for the next release.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(cbect)

Selecting "Sign in via email" on the onboarding pairing sync card started the authentication and also called scrollToNextPageOrDismiss() immediately. Since this was the last page of the onboarding, the onboarding completed and the homepage was displayed for a short period before the sign in page opens.

The email button no longer advances the onboarding. Instead, the signed in LaunchedEffect in OnboardingScreen advances only when the account is authenticated.

That effect used to observe SyncState.account, which is only sets once the profile is returned from the server. Bug 2031498 changed when the authenticated state is dispatched: AccountState.Authenticated used to be dispatched with the account after the profile request. It is now dispatched before this network call. Observing AccountState.Authenticated instead navigates the user to the homepage as soon as authentication completes, removing a delay after every onboarding sync call coming from the profile fetch.

Because the signed in state is also read when signing in through the old sign in card and the new pairing card, the OnboardingSyncFlowResult added in bug 2092151 and bug 2092623 is no longer needed and has been removed. As a result, scanning a QR code now advances the onboarding once the authentication completes, rather than as soon as the QR code is scanned.

Pull request: https://github.com/mozilla-firefox/firefox/pull/459

Attachment #9689924 - Flags: approval-mozilla-beta?
Blocks: 2095528

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Firefox 162 for Android users who reach the Consolidated Sync card during onboarding can briefly see the homepage before the email sign-in screen opens (Bug 2095146). If they cancel email sign-in or QR pairing, they land on the homepage and lose their place in onboarding (Bug 2095528). Uplifting fixes both issues in Firefox 162 so users can return to the sync card and retry or skip sign-in.

Fixing both in the same patch wasn't intentional. The fix for Bug 2095146 fixed Bug 2095528 as a side effect.

  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: no
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: Bug 2095146:
  1. Install the Firefox app on Android by scanning the QR code from desktop.
  2. Open the app and go through the first 2 onboarding cards.
  3. Tap on "Sign in with email" button from Consolidated Sync card.

Expected behavior: The user is automatically redirected to Sign in page.

Bug 2095528:

  1. Install the Firefox app on Android by scanning the QR code from desktop.
  2. Open the app and go through the first 2 onboarding cards.
  3. Tap on "Sign in with email" button from Consolidated Sync card.
  4. Tap "X" button to closed the custom tab.

Expected behavior: The user is automatically redirected to Sign in page.

  • Risk associated with taking this patch: low
  • Explanation of risk level: The patch changes when Android onboarding advances past a sync card. It uses the existing authenticated account state to advance after sign-in succeeds. Automated tests cover the auto-advance logic, and manual QE will check the email and QR pairing flows end to end.
  • String changes made/needed?: No
  • Is Android affected?: yes
Flags: qe-verify+
Attachment #9689924 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Clearing the uplift needinfo request since an uplift has been requested for all the affected channels.

For more information, please visit BugBot documentation.

Flags: needinfo?(cbect)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: