From abf6fd8f2a6a9ba24e641f9965bc5bbb36477c85 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Tue, 14 Jan 2020 14:45:33 +0100 Subject: No issue - Don't define gamepad prefs when gamepad support isn't built. This also sets sane defaults when present. See also #1319. --- modules/libpref/init/all.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules') 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); -- cgit v1.2.3