Skip to content

Bug 2092623 - Advance onboarding only when sync sign in completes - #454

Closed
corentinbect wants to merge 1 commit into
mozilla-firefox:autolandfrom
corentinbect:bug2092623
Closed

corentinbect wants to merge 1 commit into
mozilla-firefox:autolandfrom
corentinbect:bug2092623

Conversation

@corentinbect

@corentinbect corentinbect commented Nov 17, 2026 •

Copy link
Copy Markdown

Selecting "Sign in" on the onboarding sync sign in card opened TurnOnSyncFragment and also called scrollToNextPageOrDismiss() immediately. This ran OnboardingFragment.onFinish before sign in had completed, but it returned early because TurnOnSyncFragment was the current destination. As soon as the account was connected, the sign in LaunchedEffect in OnboardingScreen called OnboardingFragment.onFinish another time, resulting in a delayed navigation to the home screen.

This patch applies the same handling as bug 2092151. The sign in click no longer advances onboarding. Instead, TurnOnSyncFragment reports completion when it closes with an authenticated account and SyncFlowCompletedEffect moves to the next page once and consumes the result.


Lando: link
Bugzilla: bug 2092623

⚠️ This pull request has 2 warnings.
🚫 This pull request has 1 blocker.

@lando-web
lando-web Bot requested a review from a team November 17, 2026 12:16
Selecting "Sign in" on the onboarding sync sign in card opened `TurnOnSyncFragment` and also called scrollToNextPageOrDismiss() immediately. This ran `OnboardingFragment.onFinish` before sign in had completed, but it returned early because `TurnOnSyncFragment` was the current destination. As soon as the account was connected, the sign in `LaunchedEffect` in `OnboardingScreen` called `OnboardingFragment.onFinish` another time, resulting in a delayed navigation to the home screen.

This patch applies the same handling as bug 2092151. The sign in click no longer advances onboarding. Instead, `TurnOnSyncFragment` reports completion when it closes with an authenticated account and `SyncFlowCompletedEffect` moves to the next page once and consumes the result.
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

lando-worker Bot pushed a commit that referenced this pull request Nov 18, 2026
…white

Selecting "Sign in" on the onboarding sync sign in card opened `TurnOnSyncFragment` and also called scrollToNextPageOrDismiss() immediately. This ran `OnboardingFragment.onFinish` before sign in had completed, but it returned early because `TurnOnSyncFragment` was the current destination. As soon as the account was connected, the sign in `LaunchedEffect` in `OnboardingScreen` called `OnboardingFragment.onFinish` another time, resulting in a delayed navigation to the home screen.

This patch applies the same handling as bug 2092151. The sign in click no longer advances onboarding. Instead, `TurnOnSyncFragment` reports completion when it closes with an authenticated account and `SyncFlowCompletedEffect` moves to the next page once and consumes the result.

Pull request: #454
@lando-worker

lando-worker Bot commented Nov 18, 2026

Copy link
Copy Markdown

Pull request closed by commit 21b577b

@lando-worker lando-worker Bot closed this Nov 18, 2026
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 19, 2026
…white

Selecting "Sign in" on the onboarding sync sign in card opened `TurnOnSyncFragment` and also called scrollToNextPageOrDismiss() immediately. This ran `OnboardingFragment.onFinish` before sign in had completed, but it returned early because `TurnOnSyncFragment` was the current destination. As soon as the account was connected, the sign in `LaunchedEffect` in `OnboardingScreen` called `OnboardingFragment.onFinish` another time, resulting in a delayed navigation to the home screen.

This patch applies the same handling as bug 2092151. The sign in click no longer advances onboarding. Instead, `TurnOnSyncFragment` reports completion when it closes with an authenticated account and `SyncFlowCompletedEffect` moves to the next page once and consumes the result.

Pull request: mozilla-firefox/firefox#454

UltraBlame original commit: c5f7ef02b2462f5bd943830e2f81a1aacb281be3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 19, 2026
…white

Selecting "Sign in" on the onboarding sync sign in card opened `TurnOnSyncFragment` and also called scrollToNextPageOrDismiss() immediately. This ran `OnboardingFragment.onFinish` before sign in had completed, but it returned early because `TurnOnSyncFragment` was the current destination. As soon as the account was connected, the sign in `LaunchedEffect` in `OnboardingScreen` called `OnboardingFragment.onFinish` another time, resulting in a delayed navigation to the home screen.

This patch applies the same handling as bug 2092151. The sign in click no longer advances onboarding. Instead, `TurnOnSyncFragment` reports completion when it closes with an authenticated account and `SyncFlowCompletedEffect` moves to the next page once and consumes the result.

Pull request: mozilla-firefox/firefox#454

UltraBlame original commit: c5f7ef02b2462f5bd943830e2f81a1aacb281be3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 19, 2026
…white

Selecting "Sign in" on the onboarding sync sign in card opened `TurnOnSyncFragment` and also called scrollToNextPageOrDismiss() immediately. This ran `OnboardingFragment.onFinish` before sign in had completed, but it returned early because `TurnOnSyncFragment` was the current destination. As soon as the account was connected, the sign in `LaunchedEffect` in `OnboardingScreen` called `OnboardingFragment.onFinish` another time, resulting in a delayed navigation to the home screen.

This patch applies the same handling as bug 2092151. The sign in click no longer advances onboarding. Instead, `TurnOnSyncFragment` reports completion when it closes with an authenticated account and `SyncFlowCompletedEffect` moves to the next page once and consumes the result.

Pull request: mozilla-firefox/firefox#454

UltraBlame original commit: c5f7ef02b2462f5bd943830e2f81a1aacb281be3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants