summaryrefslogtreecommitdiffstats
path: root/modules/libpref
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
commitabf6fd8f2a6a9ba24e641f9965bc5bbb36477c85 (patch)
tree48a46dfdbf5842a143405aff6d282cddb990ff11 /modules/libpref
parent0257b657d2101d5a2473331d77430a21852564dd (diff)
downloadUXP-abf6fd8f2a6a9ba24e641f9965bc5bbb36477c85.tar
UXP-abf6fd8f2a6a9ba24e641f9965bc5bbb36477c85.tar.gz
UXP-abf6fd8f2a6a9ba24e641f9965bc5bbb36477c85.tar.lz
UXP-abf6fd8f2a6a9ba24e641f9965bc5bbb36477c85.tar.xz
UXP-abf6fd8f2a6a9ba24e641f9965bc5bbb36477c85.zip
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/libpref')
-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);