Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Lazily initialize GeckoWebExecutor #3653

Merged
merged 3 commits into from
Jul 8, 2020
Merged

Conversation

MortimerGoro
Copy link
Contributor

@MortimerGoro MortimerGoro commented Jul 8, 2020

Fixes #3652

GeckoWebExecutor creation is creating the Gecko runtime and vrPrefsWorkaround must be executed before creating the runtime. Note that vrPrefsWorkaround uses the activity intent to check some extra banchmarking/testing params so we can't run that on the VRApplicationClass (We can't get the activity intent on that stage AFAIK)

@MortimerGoro MortimerGoro self-assigned this Jul 8, 2020
@MortimerGoro MortimerGoro added the Uplift PR that needs to be uplifted. label Jul 8, 2020
@MortimerGoro MortimerGoro added this to the #11 polish milestone Jul 8, 2020
@MortimerGoro MortimerGoro changed the title Lazly initialize GeckoWebExecutor Lazily initialize GeckoWebExecutor Jul 8, 2020
@MortimerGoro
Copy link
Contributor Author

Also fixes #3651

@MortimerGoro
Copy link
Contributor Author

MortimerGoro commented Jul 8, 2020

I added a extra workaround for the GeckoResult initialization problem. The lazy initialization should be enough but calling Looper.getMainLooper().getThread() is also a working workaround. Better be safe than sorry...

@daoshengmu could you check that telemetry works as expected?

Copy link
Contributor

@daoshengmu daoshengmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me. I also checked it with Glean debug viewer. I don't see regressions in our telemetry system.

@bluemarvin bluemarvin merged commit c7649d0 into main Jul 8, 2020
@bluemarvin bluemarvin deleted the v11/lazy_gecko_web_executor branch July 8, 2020 21:23
@bluemarvin bluemarvin removed the Uplift PR that needs to be uplifted. label Jul 8, 2020
bluemarvin added a commit that referenced this pull request Jul 8, 2020
* Lazily initialize GeckoWebExecutor
Fixes #3652 Fixes #3651

* Add extra workaround for the GeckoResult initialization problem

Co-authored-by: Randall E. Barker <simstorm@mac.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The WebXR/VR content is not recognized after a fresh install
4 participants