summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-14 14:45:33 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-14 14:45:33 +0100
commit45128acdbf7cba619b54784049629e3ca7c3b67a (patch)
tree48a46dfdbf5842a143405aff6d282cddb990ff11 /modules
parente1e5ee8371420c9177aed23b57f94a46156d1c5d (diff)
downloadaura-central-45128acdbf7cba619b54784049629e3ca7c3b67a.tar.gz
No issue - Don't define gamepad prefs when gamepad support isn't built.
This also sets sane defaults when present. See also %1319.
Diffstat (limited to 'modules')
-rw-r--r--modules/libpref/init/all.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index ec93dd9a2..e1da0386d 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -215,15 +215,13 @@ pref("dom.requestIdleCallback.enabled", true);
// See WD https://www.w3.org/TR/intersection-observer/
pref("dom.intersectionObserver.enabled", true);
+#ifdef MOZ_GAMEPAD
// Whether the Gamepad API is enabled
pref("dom.gamepad.enabled", true);
pref("dom.gamepad.test.enabled", false);
-#ifdef RELEASE_OR_BETA
pref("dom.gamepad.non_standard_events.enabled", false);
-#else
-pref("dom.gamepad.non_standard_events.enabled", true);
-#endif
pref("dom.gamepad.extensions.enabled", false);
+#endif
// Whether the KeyboardEvent.code is enabled
pref("dom.keyboardevent.code.enabled", true);