mozilla-mobile / fenix

⚠️ Fenix (Firefox for Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
https://github.com/mozilla-mobile/firefox-android
Mozilla Public License 2.0
6.48k stars 1.27k forks source link

Bug 1814410: Unified search migrate to general search engine after search engine list loads #28774

Closed DreVla closed 1 year ago

DreVla commented 1 year ago

It seems like the previous call for the migration was not consistently working, on nightly the searchEngines list was not completely loaded when calling the migration. The method call was moved to waitForSelectedOrDefaultSearchEngine since here we know for sure that the list is loaded (Kudos to @Mugurell for helping me with this). Since unified search will require a restart, the migration does not happen immediately after activating the feature, but only when manually restarting the app.

Video for behavior when restarting:

https://user-images.githubusercontent.com/32488956/217195878-80818cf2-b544-4e3d-8e3b-c511524494e9.mp4

Video for behavior when activating unified search and instead of restarting the app, open the app from the widget:

https://user-images.githubusercontent.com/32488956/217196294-9f6dc251-86a2-4a57-af71-94009c723bfe.mp4

Pull Request checklist

QA

To download an APK when reviewing a PR (after all CI tasks finished running):

  1. Click on Checks at the top of the PR page.
  2. Click on the firefoxci-taskcluster group on the left to expand all tasks.
  3. Click on the build-debug task.
  4. Click on View task in Taskcluster in the new DETAILS section.
  5. The APK links should be on the right side of the screen, named for each CPU architecture.

GitHub Automation

Used by GitHub Actions.