summaryrefslogtreecommitdiffstats
path: root/browser/base/content
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-12-13 17:47:44 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-24 10:30:41 +0100
commitc88c161875beca091fe183a3b04480422b3d3885 (patch)
treea65fa8c0a8dddab16d65739b382a7632b73e813d /browser/base/content
parent46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e (diff)
downloadUXP-c88c161875beca091fe183a3b04480422b3d3885.tar
UXP-c88c161875beca091fe183a3b04480422b3d3885.tar.gz
UXP-c88c161875beca091fe183a3b04480422b3d3885.tar.lz
UXP-c88c161875beca091fe183a3b04480422b3d3885.tar.xz
UXP-c88c161875beca091fe183a3b04480422b3d3885.zip
Remove unnecessary front-end features and pres when not building EME.
Tag #26.
Diffstat (limited to 'browser/base/content')
-rw-r--r--browser/base/content/browser-media.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/browser/base/content/browser-media.js b/browser/base/content/browser-media.js
index a013dbd8a..f721be74d 100644
--- a/browser/base/content/browser-media.js
+++ b/browser/base/content/browser-media.js
@@ -5,12 +5,16 @@
var gEMEHandler = {
get uiEnabled() {
+#ifdef MOZ_EME
let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
// Force-disable on WinXP:
if (navigator.platform.toLowerCase().startsWith("win")) {
emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
}
return emeUIEnabled;
+#else
+ return false;
+#endif
},
ensureEMEEnabled: function(browser, keySystem) {
Services.prefs.setBoolPref("media.eme.enabled", true);