firefox-ios
firefox-ios copied to clipboard
iOS device does not show as connected to sync, after changing the password from it
Precondition
- The user is connected to sync on desktop and on iOS device;
Steps to reproduce
- On the connected iOS device, access your Firefox account from the 3 line menu;
- Access the “Manage account & Devices” option;
- From the Firefox account settings page, change the password;
- The user is disconnected from the desktop sync, the iOS device is still connected to sync;
- Reconnect to the desktop sync, with the new password;
Expected result
- The 3 last active tabs are displayed in Synced tabs list
Actual result
- iOS device does not show up in synced tabs list (neither tabs nor the device itself saying "no open tabs")
This is reproducible and is due to changing password on iOS does not trigger a sync, while logging in does. Which is why this resolves itself after a user opens/closes a tab on iOS (kicks off a tab sync) or after 15min (which the sync timer kicks off in iOS).
The fix should be fairly straightforward and we should just call sync after the user successfully changes a password: https://github.com/mozilla-mobile/firefox-ios/blob/824550f82c54b2ed324544bc651d68c0e44d5112/firefox-ios/RustFxA/FxAWebViewModel.swift#L386
┆Issue is synchronized with this Jira Bug