gecko-dev/browser
Kearwood "Kip" Gilbert b3787eec77 Bug 1603825 - Suppress the VR permission UI when no VR runtimes are detected r=daoshengmu,bzbarsky
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
2020-01-03 22:47:26 +00:00
..
actors Bug 1553265 - add a document.addCertException function to about:certerror pages and use it there; also treat GeckoView error pages as CallerIsTrusted(Net|Cert)Error; r=snorp,johannh,baku 2019-12-18 21:55:32 +00:00
app Bug 1606274 - Remove always-true MOZ_PHOENIX macro. r=firefox-build-system-reviewers,rstewart 2019-12-30 15:00:20 +00:00
base Bug 1603825 - Suppress the VR permission UI when no VR runtimes are detected r=daoshengmu,bzbarsky 2020-01-03 22:47:26 +00:00
branding Bug 1575658 - Moved firefox-wordmark.svg to browser/branding r=MattN,Mardak 2019-12-10 21:08:57 +00:00
components Bug 1603825 - Suppress the VR permission UI when no VR runtimes are detected r=daoshengmu,bzbarsky 2020-01-03 22:47:26 +00:00
config Backed out changeset 691de0626040 (bug 1569370) as per Nathan's request. CLOSED TREE 2020-01-03 23:07:24 +02:00
docs Bug 1595953 - Connect UITour-lib.js docs to sphinx-js to publish on firefox-source-docs. r=markh 2019-11-13 02:40:03 +00:00
extensions Bug 1605297 - disable browser_policyOverride.js for frequent failures. r=jmaher 2020-01-01 23:34:25 +00:00
fonts Bug 1592801 - Update Twemoji Mozilla to 0.5.0 (twemoji 12.1.3). r=jfkthame 2019-11-20 23:01:14 +00:00
fxr Bug 1603524 - FxR PC Preview UI tweaks r=Gijs 2019-12-13 18:33:44 +00:00
installer Bug 1605416 - package the wasm sandboxed graphite library where appropriate; r=firefox-build-system-reviewers,rstewart 2019-12-20 22:26:50 +00:00
locales Bug 969282 - don't copy http proxy values to socks proxy now that we use it for websocket connections, r=mixedpuppy,mkaply,fluent-reviewers,flod 2020-01-02 12:51:40 +00:00
modules Bug 1601889, use the right function to remove an entry from a Set in BrowserUsageTelemetry.jsm, r=Standard8 2019-12-28 15:23:57 +00:00
themes Bug 969282 - don't copy http proxy values to socks proxy now that we use it for websocket connections, r=mixedpuppy,mkaply,fluent-reviewers,flod 2020-01-02 12:51:40 +00:00
tools/mozscreenshots Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8 2019-12-13 20:36:48 +00:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh Bug 1606274 - Remove always-true MOZ_PHOENIX macro. r=firefox-build-system-reviewers,rstewart 2019-12-30 15:00:20 +00:00
defs.mk
l10n-registry.manifest
LICENSE
Makefile.in
moz.build
moz.configure