mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Remove unnecessary front-end features and pres when not building EME.
Tag #26.
This commit is contained in:
parent
c9f70f4de1
commit
80a865ac12
7 changed files with 28 additions and 11 deletions
|
|
@ -1330,20 +1330,21 @@ pref("identity.fxaccounts.migrateToDevEdition", false);
|
||||||
pref("ui.key.menuAccessKeyFocuses", true);
|
pref("ui.key.menuAccessKeyFocuses", true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MOZ_EME
|
||||||
// Encrypted media extensions.
|
// Encrypted media extensions.
|
||||||
#ifdef XP_LINUX
|
// EME is visible but disabled by default. This is so that the
|
||||||
// On Linux EME is visible but disabled by default. This is so that the
|
// "Play DRM content" checkbox in the browser UI is unchecked by default.
|
||||||
// "Play DRM content" checkbox in the Firefox UI is unchecked by default.
|
|
||||||
// DRM requires downloading and installing proprietary binaries, which
|
// DRM requires downloading and installing proprietary binaries, which
|
||||||
// users on an open source operating systems didn't opt into. The first
|
// users didn't necessarily opt-in to by installing the browser.
|
||||||
// time a site using EME is encountered, the user will be prompted to
|
// The first time a site using EME is encountered, the user will be
|
||||||
// enable DRM, whereupon the EME plugin binaries will be downloaded if
|
// prompted to enable DRM, whereupon the EME plugin binaries will be
|
||||||
// permission is granted.
|
// downloaded if permission is granted.
|
||||||
pref("media.eme.enabled", false);
|
pref("media.eme.enabled", false);
|
||||||
#else
|
|
||||||
pref("media.eme.enabled", true);
|
|
||||||
#endif
|
|
||||||
pref("media.eme.apiVisible", true);
|
pref("media.eme.apiVisible", true);
|
||||||
|
#else
|
||||||
|
// Disable redundant interfaces
|
||||||
|
pref("media.eme.apiVisible", false);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Decode using Gecko Media Plugins in <video>, if a system decoder is not
|
// Decode using Gecko Media Plugins in <video>, if a system decoder is not
|
||||||
// availble and the preferred GMP is available.
|
// availble and the preferred GMP is available.
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,16 @@
|
||||||
|
|
||||||
var gEMEHandler = {
|
var gEMEHandler = {
|
||||||
get uiEnabled() {
|
get uiEnabled() {
|
||||||
|
#ifdef MOZ_EME
|
||||||
let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
|
let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
|
||||||
// Force-disable on WinXP:
|
// Force-disable on WinXP:
|
||||||
if (navigator.platform.toLowerCase().startsWith("win")) {
|
if (navigator.platform.toLowerCase().startsWith("win")) {
|
||||||
emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
|
emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
|
||||||
}
|
}
|
||||||
return emeUIEnabled;
|
return emeUIEnabled;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
},
|
},
|
||||||
ensureEMEEnabled: function(browser, keySystem) {
|
ensureEMEEnabled: function(browser, keySystem) {
|
||||||
Services.prefs.setBoolPref("media.eme.enabled", true);
|
Services.prefs.setBoolPref("media.eme.enabled", true);
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ browser.jar:
|
||||||
content/browser/browser-fullZoom.js (content/browser-fullZoom.js)
|
content/browser/browser-fullZoom.js (content/browser-fullZoom.js)
|
||||||
content/browser/browser-fxaccounts.js (content/browser-fxaccounts.js)
|
content/browser/browser-fxaccounts.js (content/browser-fxaccounts.js)
|
||||||
content/browser/browser-gestureSupport.js (content/browser-gestureSupport.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-places.js (content/browser-places.js)
|
||||||
content/browser/browser-plugins.js (content/browser-plugins.js)
|
content/browser/browser-plugins.js (content/browser-plugins.js)
|
||||||
content/browser/browser-refreshblocker.js (content/browser-refreshblocker.js)
|
content/browser/browser-refreshblocker.js (content/browser-refreshblocker.js)
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ var gContentPane = {
|
||||||
document.getElementById("notificationsPolicyLearnMore").setAttribute("href",
|
document.getElementById("notificationsPolicyLearnMore").setAttribute("href",
|
||||||
notificationInfoURL);
|
notificationInfoURL);
|
||||||
|
|
||||||
|
#ifdef MOZ_EME
|
||||||
let drmInfoURL =
|
let drmInfoURL =
|
||||||
Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content";
|
Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content";
|
||||||
document.getElementById("playDRMContentLink").setAttribute("href", drmInfoURL);
|
document.getElementById("playDRMContentLink").setAttribute("href", drmInfoURL);
|
||||||
|
|
@ -91,6 +92,7 @@ var gContentPane = {
|
||||||
// of the pane hiding/showing code potentially interfering:
|
// of the pane hiding/showing code potentially interfering:
|
||||||
document.getElementById("drmGroup").setAttribute("style", "display: none !important");
|
document.getElementById("drmGroup").setAttribute("style", "display: none !important");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
},
|
},
|
||||||
|
|
||||||
// UTILITY FUNCTIONS
|
// UTILITY FUNCTIONS
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,12 @@
|
||||||
|
|
||||||
<preferences id="contentPreferences" hidden="true" data-category="paneContent">
|
<preferences id="contentPreferences" hidden="true" data-category="paneContent">
|
||||||
|
|
||||||
|
#ifdef MOZ_EME
|
||||||
<!-- DRM content -->
|
<!-- DRM content -->
|
||||||
<preference id="media.eme.enabled"
|
<preference id="media.eme.enabled"
|
||||||
name="media.eme.enabled"
|
name="media.eme.enabled"
|
||||||
type="bool"/>
|
type="bool"/>
|
||||||
|
#endif
|
||||||
|
|
||||||
<!-- Popups -->
|
<!-- Popups -->
|
||||||
<preference id="dom.disable_open_during_load"
|
<preference id="dom.disable_open_during_load"
|
||||||
|
|
@ -40,6 +42,7 @@
|
||||||
<html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
|
<html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
|
#ifdef MOZ_EME
|
||||||
<groupbox id="drmGroup" data-category="paneContent" hidden="true">
|
<groupbox id="drmGroup" data-category="paneContent" hidden="true">
|
||||||
<caption><label>&drmContent.label;</label></caption>
|
<caption><label>&drmContent.label;</label></caption>
|
||||||
<grid id="contentGrid2">
|
<grid id="contentGrid2">
|
||||||
|
|
@ -60,6 +63,7 @@
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
#endif
|
||||||
|
|
||||||
<groupbox id="notificationsGroup" data-category="paneContent" hidden="true">
|
<groupbox id="notificationsGroup" data-category="paneContent" hidden="true">
|
||||||
<caption><label>¬ificationsPolicy.label;</label></caption>
|
<caption><label>¬ificationsPolicy.label;</label></caption>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ browser.jar:
|
||||||
content/browser/preferences/in-content/containers.js
|
content/browser/preferences/in-content/containers.js
|
||||||
content/browser/preferences/in-content/advanced.js
|
content/browser/preferences/in-content/advanced.js
|
||||||
content/browser/preferences/in-content/applications.js
|
content/browser/preferences/in-content/applications.js
|
||||||
content/browser/preferences/in-content/content.js
|
* content/browser/preferences/in-content/content.js
|
||||||
content/browser/preferences/in-content/sync.js
|
content/browser/preferences/in-content/sync.js
|
||||||
content/browser/preferences/in-content/security.js
|
content/browser/preferences/in-content/security.js
|
||||||
content/browser/preferences/in-content/search.js
|
content/browser/preferences/in-content/search.js
|
||||||
|
|
|
||||||
|
|
@ -627,6 +627,12 @@ pref("media.mediasource.enabled", true);
|
||||||
|
|
||||||
pref("media.mediadrm-widevinecdm.visible", true);
|
pref("media.mediadrm-widevinecdm.visible", true);
|
||||||
|
|
||||||
|
#ifdef MOZ_EME
|
||||||
|
// Enable EME(Encrypted media extensions?)
|
||||||
|
pref("media.eme.enabled", false);
|
||||||
|
pref("media.eme.apiVisible", false);
|
||||||
|
#endif
|
||||||
|
|
||||||
// optimize images memory usage
|
// optimize images memory usage
|
||||||
pref("image.downscale-during-decode.enabled", true);
|
pref("image.downscale-during-decode.enabled", true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue