diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-12-13 17:47:44 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-24 10:30:41 +0100 |
commit | c88c161875beca091fe183a3b04480422b3d3885 (patch) | |
tree | a65fa8c0a8dddab16d65739b382a7632b73e813d /browser/base | |
parent | 46ad1199deeaf6ba2db31fb3398d3eaa9abdbb2e (diff) | |
download | UXP-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')
-rw-r--r-- | browser/base/content/browser-media.js | 4 | ||||
-rw-r--r-- | browser/base/jar.mn | 2 |
2 files changed, 5 insertions, 1 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); diff --git a/browser/base/jar.mn b/browser/base/jar.mn index 3fa5ea408..a65c77338 100644 --- a/browser/base/jar.mn +++ b/browser/base/jar.mn @@ -80,7 +80,7 @@ browser.jar: content/browser/browser-fullZoom.js (content/browser-fullZoom.js) content/browser/browser-fxaccounts.js (content/browser-fxaccounts.js) content/browser/browser-gestureSupport.js (content/browser-gestureSupport.js) - content/browser/browser-media.js (content/browser-media.js) +* content/browser/browser-media.js (content/browser-media.js) content/browser/browser-places.js (content/browser-places.js) content/browser/browser-plugins.js (content/browser-plugins.js) content/browser/browser-refreshblocker.js (content/browser-refreshblocker.js) |