Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] UriOpenedObserver not registered for restored sessions #9816

Closed
BranescuMihai opened this issue Apr 9, 2020 · 1 comment
Closed

[Bug] UriOpenedObserver not registered for restored sessions #9816

BranescuMihai opened this issue Apr 9, 2020 · 1 comment
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. eng:health Improve code health eng:qa:not-needed Added by QA to issues that cannot be tested Feature:Telemetry needs:investigation

Comments

@BranescuMihai
Copy link
Contributor

BranescuMihai commented Apr 9, 2020

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

@ekager
Copy link
Contributor

ekager commented Apr 21, 2020

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 ekager removed the eng:qa:needed QA Needed label Apr 21, 2020
@ekager ekager closed this as completed Apr 21, 2020
@ekager ekager added the eng:qa:not-needed Added by QA to issues that cannot be tested label Apr 21, 2020
@liuche liuche mentioned this issue Apr 28, 2020
32 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. eng:health Improve code health eng:qa:not-needed Added by QA to issues that cannot be tested Feature:Telemetry needs:investigation
Projects
None yet
Development

No branches or pull requests

6 participants