mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +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
|
|
@ -78,6 +78,7 @@ var gContentPane = {
|
|||
document.getElementById("notificationsPolicyLearnMore").setAttribute("href",
|
||||
notificationInfoURL);
|
||||
|
||||
#ifdef MOZ_EME
|
||||
let drmInfoURL =
|
||||
Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content";
|
||||
document.getElementById("playDRMContentLink").setAttribute("href", drmInfoURL);
|
||||
|
|
@ -91,6 +92,7 @@ var gContentPane = {
|
|||
// of the pane hiding/showing code potentially interfering:
|
||||
document.getElementById("drmGroup").setAttribute("style", "display: none !important");
|
||||
}
|
||||
#endif
|
||||
},
|
||||
|
||||
// UTILITY FUNCTIONS
|
||||
|
|
|
|||
|
|
@ -6,10 +6,12 @@
|
|||
|
||||
<preferences id="contentPreferences" hidden="true" data-category="paneContent">
|
||||
|
||||
#ifdef MOZ_EME
|
||||
<!-- DRM content -->
|
||||
<preference id="media.eme.enabled"
|
||||
name="media.eme.enabled"
|
||||
type="bool"/>
|
||||
#endif
|
||||
|
||||
<!-- Popups -->
|
||||
<preference id="dom.disable_open_during_load"
|
||||
|
|
@ -40,6 +42,7 @@
|
|||
<html:a class="help-button" target="_blank" aria-label="&helpButton.label;"></html:a>
|
||||
</hbox>
|
||||
|
||||
#ifdef MOZ_EME
|
||||
<groupbox id="drmGroup" data-category="paneContent" hidden="true">
|
||||
<caption><label>&drmContent.label;</label></caption>
|
||||
<grid id="contentGrid2">
|
||||
|
|
@ -60,6 +63,7 @@
|
|||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
#endif
|
||||
|
||||
<groupbox id="notificationsGroup" data-category="paneContent" hidden="true">
|
||||
<caption><label>¬ificationsPolicy.label;</label></caption>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ browser.jar:
|
|||
content/browser/preferences/in-content/containers.js
|
||||
content/browser/preferences/in-content/advanced.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/security.js
|
||||
content/browser/preferences/in-content/search.js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue