Closed Bug 1581988 Opened 5 years ago Closed 5 years ago

Can't get vr display intermediately after relaunch VR process.

Categories

(Core :: WebVR, defect, P1)

70 Branch
Desktop
Windows
defect

Tracking

()

VERIFIED FIXED
mozilla71
Tracking Status
firefox-esr68 --- unaffected
firefox69 --- unaffected
firefox70 --- verified
firefox71 --- verified

People

(Reporter: daoshengmu, Assigned: daoshengmu)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

According to MozRegression, this bug happens at [1] in Bug 1566285. A regression from FF 70.

STR:

  1. Open https://webvr.info/samples/04-simple-mirroring.html
  2. Open another tab, go to Wikipedia
  3. Close the first tab and wait VR process is shutdown.
  4. Open another tab, go to https://webvr.info/samples/04-simple-mirroring.html.

Expected result:
We can get VR display and enter immersive mode successfully.

Actual result:
Can't get VR display.

[1] https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0fb761cd8fa448eb511e8b2520ede5a3230853ed&tochange=b6d154b2309846531934289c1e167208fc385ac3

Attachment #9093463 - Attachment description: Bug 1581988 - (wip) Fix can't get VR display. → Bug 1581988 - Wait for enumerationCompleted from VR service in other thread/process.
Assignee: nobody → dmu

This is because VR process need to wait a little bit until it is launched, then we can get the current VR display states. Using mEnumerationCompleted should be a good way to go because it comes from the shmem from the other side.

Attachment #9093463 - Attachment description: Bug 1581988 - Wait for enumerationCompleted from VR service in other thread/process. → Bug 1581988 - Making VR display enumerationCompleted be false when doing enumeration.
Summary: Immediately can't get vr display after relaunch VR process. → Intermediately can't get vr display after relaunch VR process.
Summary: Intermediately can't get vr display after relaunch VR process. → Can't get vr display intermediately after relaunch VR process.
Pushed by dmu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/98238205f2a8
Making VR display enumerationCompleted be false when doing enumeration. r=kip
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Comment on attachment 9093463 [details]
Bug 1581988 - Making VR display enumerationCompleted be false when doing enumeration.

Beta/Release Uplift Approval Request

  • User impact if declined: Users can't get VR display intermediately when reopening VR pages. (Fixes regress Bug 1566285)
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This just resets the state of enumeration and ask for doing enumeration again, so it will not bring any risk.
  • String changes made/needed:
Attachment #9093463 - Flags: approval-mozilla-beta?

Comment on attachment 9093463 [details]
Bug 1581988 - Making VR display enumerationCompleted be false when doing enumeration.

Fix for a VR regression introduced in 70, one liner, looks safe, uplift approved for 70 beta 9, Thanks.

Attachment #9093463 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Sorry for the long pause.
I reproduced this issue on Fx 71.0a1(2019-09-17), using Windows 10 x64 with Oculus Rift.
I can confirm this issue is fixed, I verified on Fx 71.0a1 (2019-10-04) and Fx 70.0b12 on the same environment.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: