зеркало из https://github.com/mozilla/gecko-dev.git
b3787eec77
This patch suppresses VR device access permission prompts for users that do not have any VR runtimes installed. We could not depend on the existing VR device enumeration functions to suppress the permission prompts, as the act of enumerating VR devices will result in some hardware physically powering on and software starting up (and staying running) in the background. This patch includes logic to spawn the VR process with an additional flag indicating that it should attempt only to detect the runtimes, without proceeding to enumerate and activate hardware and software. VRManager now includes an enum to more clearly organize it's state machine model, which now must ensure that the runtime detection happens on-demand when the VR session support capabilities are first determined. There is a new pref to disable the suppression of permission prompts for use within permission UI tests on machines without VR runtimes. Renamed some variables and added comments to make code in nsGlobalWindowInner and Navigator clearer and better represent the updated logic -- to allow the separate detection of VR runtimes and VR session activation. Both the runtime detection and VR session activity uses VREventObserver to send events to nsGlobalWindowInner. Differential Revision: https://phabricator.services.mozilla.com/D57568 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
test | ||
VRDisplay.cpp | ||
VRDisplay.h | ||
VRDisplayEvent.cpp | ||
VRDisplayEvent.h | ||
VREventObserver.cpp | ||
VREventObserver.h | ||
VRServiceTest.cpp | ||
VRServiceTest.h | ||
XRPermissionRequest.cpp | ||
XRPermissionRequest.h | ||
moz.build |