fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] UriOpenedObserver not registered for restored sessions

Open BranescuMihai opened this issue 6 years ago • 1 comments

Steps to reproduce

Add one or more tabs (sessions) Close the app Restart the app

Expected behavior

The UriOpenedObserver registers itself for restored sessions

Actual behavior

The UriOpenedObserver doesn't register itself for restored sessions.

Device information

  • Android device: All
  • Fenix version: Latest develop

Engineering notes

This happens because the restoring is done in Core.kt -> init of SessionManager (lazy init, first called in FenixApplication - setupInMainProcessOnly()), while the UriOpenedObserver is initiated much later, when we go to the BrowserFragment.

┆Issue is synchronized with this Jira Task

BranescuMihai avatar Apr 09 '20 08:04 BranescuMihai

Thanks for filing! We investigated and decided the core of this issue was that we aren't registering on selected sessions or the first selected session. So we've added those and this should be fixed!

ekager avatar Apr 21 '20 21:04 ekager