[Menu Redesign] Display the correct state in the Mozilla account button
Categories
(Firefox for Android :: Toolbar, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: gl, Assigned: gl, NeedInfo)
References
Details
(Whiteboard: [fxdroid])
Attachments
(3 files)
Followup to https://phabricator.services.mozilla.com/D207053#7108155, where we need to add some form of AccountState inside of our SyncStore which is currently missing and as a result we are not properly able to display the state where we need to reauthenticate the account.
Note, I believe that only AccountUiView is displaying the correct sync states in a button at the moment compare to BrowserMenuSIgnIn
The task here is to do the following:
- Add an
AccountStateto theSyncStatethat is managed bySyncStore - Observe the new
AccountStatefrom theSyncStorein the menu dialog in order to provide the correct properties toMozillaAccountButton. - Implement the correct navigation to the appropriate fragments given the
AccountState. This should follow AccountUiView.
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
- Adds an
AccountStateto theSyncStatethat is managed bySyncStore - This follows closely to
accountStateSideEffectsin https://searchfox.org/mozilla-central/rev/83ac77eef5a02e3c7d0d6bcc1e28a8f0700d4b5e/mobile/android/android-components/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/manager/FxaAccountManager.kt#507 where we map theAccountStateto when the observer callbacks are notified.
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
- Implement the correct navigation to the appropriate Mozilla account fragments given the AccountState
- Navigation flow follows:
https://searchfox.org/mozilla-central/rev/83ac77eef5a02e3c7d0d6bcc1e28a8f0700d4b5e/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarMenuController.kt#233
https://searchfox.org/mozilla-central/rev/83ac77eef5a02e3c7d0d6bcc1e28a8f0700d4b5e/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeMenuView.kt#122
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1a4ab46225c0
https://hg.mozilla.org/mozilla-central/rev/d80c214825c1
https://hg.mozilla.org/mozilla-central/rev/2f0f2cbeef3f
Updated•1 year ago
|
Comment 6•1 year ago
|
||
Hi :gl! I wonder if this patch stack could be causing the assertion in bug 1908838, and the recent spike in Sentry errors from bug 1909779?
Specifically, I'm wondering if calling authenticatedAccount.getProfile()? inside FxaAccountObserver.onReady() causes getProfile() to update the account state and log the user out as a side effect, then notify AccountAbnormalities.onLoggedOut() before AccountAbnormalities.onReady() has had a chance to run. Could that explain what's happening here?
Updated•1 year ago
|
Description
•