From 80a865ac126a35b4b2b870398832cca9a593e301 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 13 Dec 2017 17:47:44 +0100 Subject: [PATCH] Remove unnecessary front-end features and pres when not building EME. Tag #26. --- browser/app/profile/firefox.js | 21 ++++++++++--------- browser/base/content/browser-media.js | 4 ++++ browser/base/jar.mn | 2 +- .../preferences/in-content/content.js | 2 ++ .../preferences/in-content/content.xul | 4 ++++ .../components/preferences/in-content/jar.mn | 2 +- mobile/android/app/mobile.js | 6 ++++++ 7 files changed, 29 insertions(+), 12 deletions(-) diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index b46d944e8a..94615ded00 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1330,20 +1330,21 @@ pref("identity.fxaccounts.migrateToDevEdition", false); pref("ui.key.menuAccessKeyFocuses", true); #endif +#ifdef MOZ_EME // Encrypted media extensions. -#ifdef XP_LINUX -// On Linux EME is visible but disabled by default. This is so that the -// "Play DRM content" checkbox in the Firefox UI is unchecked by default. +// EME is visible but disabled by default. This is so that the +// "Play DRM content" checkbox in the browser UI is unchecked by default. // DRM requires downloading and installing proprietary binaries, which -// users on an open source operating systems didn't opt into. The first -// time a site using EME is encountered, the user will be prompted to -// enable DRM, whereupon the EME plugin binaries will be downloaded if -// permission is granted. +// users didn't necessarily opt-in to by installing the browser. +// The first time a site using EME is encountered, the user will be +// prompted to enable DRM, whereupon the EME plugin binaries will be +// downloaded if permission is granted. pref("media.eme.enabled", false); -#else -pref("media.eme.enabled", true); -#endif pref("media.eme.apiVisible", true); +#else +// Disable redundant interfaces +pref("media.eme.apiVisible", false); +#endif // Decode using Gecko Media Plugins in