Bug 1343368 - [webvr] Enable WebVR 1.1 By Default on Windows in Release draft
authorKearwood Gilbert <kgilbert@mozilla.com>
Thu, 13 Apr 2017 01:05:11 -0700
changeset 561887 75b930c1168c4858dbad4e5c00cc0e9d33dff399
parent 561886 48958ca4267adc86ea57f3701645d5e0222d792e
child 624105 fb7fd9773f797df8c1626b4ff273f8617733ee4e
push id53881
push userkgilbert@mozilla.com
push dateThu, 13 Apr 2017 08:05:40 +0000
bugs1343368
milestone55.0a1
Bug 1343368 - [webvr] Enable WebVR 1.1 By Default on Windows in Release MozReview-Commit-ID: 21qcbKyNfNY
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5038,21 +5038,22 @@ pref("jsloader.reuseGlobal", false);
 
 // When we're asked to take a screenshot, don't wait more than 2000ms for the
 // event loop to become idle before actually taking the screenshot.
 pref("dom.browserElement.maxScreenshotDelayMS", 2000);
 
 // Whether we should show the placeholder when the element is focused but empty.
 pref("dom.placeholder.show_on_focus", true);
 
-// VR is disabled by default in release and enabled for nightly and aurora
-#ifdef RELEASE_OR_BETA
+// WebVR is enabled by default in beta and release for Windows and for all
+// platforms in nightly and aurora.
+#if defined(XP_WIN) || !defined(RELEASE_OR_BETA)
+pref("dom.vr.enabled", true);
+#else
 pref("dom.vr.enabled", false);
-#else
-pref("dom.vr.enabled", true);
 #endif
 // It is often desirable to automatically start vr presentation when
 // a user puts on the VR headset.  This is done by emitting the
 // Window.vrdisplayactivate event when the headset's sensors detect it
 // being worn.  This can result in WebVR content taking over the headset
 // when the user is using it outside the browser or inadvertent start of
 // presentation due to the high sensitivity of the proximity sensor in some
 // headsets, so it is off by default.