Open Bug 1214466 Opened 10 years ago Updated 3 years ago

Android FF should wake lock the screen and CPU when in VR mode.

Categories

(Core :: WebVR, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: caseyyee.ca, Unassigned)

References

Details

(Whiteboard: [webvr])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2533.0 Safari/537.36 Steps to reproduce: when entering VR with requestFullscreen({ vrDisplay: vrDisplay }), we should wake-lock the device so that the screen remains active when viewing VR content. Actual results: Device sleeps. Expected results: Device should stay awake.
Flags: needinfo?(vladimir)
Whiteboard: [webvr]
Related: Bug 1054113 - Firefox for Android should support Navigator.requestWakeLock API https://bugzilla.mozilla.org/show_bug.cgi?id=1054113 We should also aim to have the above bug fixed so that we can request wake-lock with VR content that does not use the VR API's.
Here's the work-around that Boris' WebVR-boilerplate uses: https://github.com/borismus/webvr-boilerplate/blob/master/src/wakelock.js
Component: Untriaged → General
Product: Firefox → Firefox for Android
When we implement WebVR for Android, this should be handled automatically when entering VR presentation. I'll keep this bug open to track this requirement.
Blocks: 1310657
Component: General → WebVR
Product: Firefox for Android → Core
Flags: needinfo?(vladimir)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.