Closed Bug 1592610 Opened 5 years ago Closed 5 years ago

Superfluous DispatchVRDisplayInfoUpdate call when a session is restored in Android

Categories

(Core :: WebVR, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mortimergoro, Assigned: mortimergoro)

Details

Attachments

(1 file)

We have another WebVR restore issue in Firefox Reality Standalone. In the previous restore issue, JavaScript got 0 displays in navigator.getVRDisplays(). Right now there is a race condition where JavaScript gets 1 display but with canPresent capability flag disabled.

The problem is that when the Android app goes to background VRManager state is not reset to VRManagerState::Idle and stays with a VRManagerState::Active after restored, which can trigger a cached display update which has been already cleaned in FxR onDestroy.

Summary: Superfluous DispatchVRDisplayInfoUpdate when a session is restored in Android → Superfluous DispatchVRDisplayInfoUpdate call when a session is restored in Android
Assignee: nobody → imanol

Set Idle state in VRManager when the app goes to background on Android.

Pushed by igorostizaga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a900d3343e0
Set Idle state in VRManager when the app goes to background on Android. r=kip,rbarker
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: