mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.15k stars 2.91k forks source link

Top Sites section is not displayed on the tab after opening a new tab from outisde de app (Siri Shortcuts, Today Widget) #5589

Closed SimonBasca closed 4 years ago

SimonBasca commented 4 years ago

Build: 20.0(16347) Device: iPhone Xr iOS: 13.0

Preconditions

Steps to reproduce:

  1. Open Firefox
  2. Go to youtube.com
  3. Background Firefox
  4. Wake up Siri and say the command to Open New Tab

Actual results:

SimonBasca commented 4 years ago

This is also reproducible when following the STR and opening a new tab via Today Widget

ozankaraali commented 4 years ago

Hello, I have looked into the problem and seems that AppDelegate (profile._reopen()) is called later than SwiftData (doWork() of withConnection), therefore SwiftData's closed attribute turns true and therefore no connections created to Sqlite.

If any of these three solutions make sense, I'd like to be assigned for the solution.