Closed Bug 988574 Opened 11 years ago Closed 4 years ago

Implement and use AsyncTaskLoader for retrieving Firefox Accounts and internal account State

Categories

(Firefox for Android Graveyard :: Firefox Accounts, defect, P5)

All
Android
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: nalexander, Unassigned)

References

Details

We've been playing a little fast and loose with our FxAccount activities. We query -- synchronously -- for any existing FxAccounts in onResume. This is slow, blocks the main thread, spams the log with strict mode warnings, and is not correct in the face of account status changes. We can address this by implementing an AsyncTaskLoader that does this work in the background and (optionally) notifies its consumers when the underlying Account State has changed. This should provide a good unification of this Account loading code.
Depends on: 988605
Component: Android Sync → Firefox Accounts
Product: Android Background Services → Firefox for Android
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195 Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.