Closed Bug 1168512 Opened 9 years ago Closed 9 years ago

[meta] Amend Sync state on account transitions, server transitions, and meta/global changes

Categories

(Firefox for iOS :: Sync, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rnewman, Assigned: rnewman)

References

(Depends on 1 open bug)

Details

Getting this bug to FIXED will be a long and painful journey, but we might as well start chipping away at it.

When you sign out of FxA:

* Clear tabs
* Clear clients
* Mark history as non-synced
* Throw away keys

and so on -- get back to the state you'd be in before you set up FxA.

When you hit a new server, clear tabs and clients, and wipe metadata for the rest, so that we can sync from scratch (as soon as someone else uploads a meta/global!).

When meta/global reveals a change -- an engine is disabled, or a storage version changes -- we must do a subset of these things: e.g., if the user remotely turns off tab sync, we should throw away remote tabs.
Depends on: 1168690
Blocks: 1196241
History: 2d799e3
Tabs and clients: 752d18d

onRemovedAccount takes care of the rest:

                // This will remove keys from the Keychain if they exist, as well
                // as wiping the Sync prefs.
                SyncStateMachine.clearStateFromPrefs(self.prefsForSync)
Assignee: nobody → rnewman
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.