summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-06-03 17:49:32 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-06-03 17:49:32 -0400
commiteef869e997ac5644ece7fc8ac9edaf51bd009931 (patch)
tree79762df8377de586bc6241d29e817d34dbfd6999 /components
parent5cb8f28b78ffbda8e362bc13591ef006a77bf533 (diff)
downloadiceweasel-uxp-eef869e997ac5644ece7fc8ac9edaf51bd009931.tar.gz
remove pdfjs, eme, translator leftovers
Diffstat (limited to 'components')
-rw-r--r--components/preferences/in-content/applications.js13
-rw-r--r--components/preferences/in-content/content.js28
-rw-r--r--components/preferences/in-content/content.xul66
3 files changed, 0 insertions, 107 deletions
diff --git a/components/preferences/in-content/applications.js b/components/preferences/in-content/applications.js
index 64f91b5..d751514 100644
--- a/components/preferences/in-content/applications.js
+++ b/components/preferences/in-content/applications.js
@@ -1006,7 +1006,6 @@ var gApplicationsPane = {
_loadData: function() {
this._loadFeedHandler();
- this._loadInternalHandlers();
this._loadPluginHandlers();
this._loadApplicationHandlers();
},
@@ -1023,18 +1022,6 @@ var gApplicationsPane = {
},
/**
- * Load higher level internal handlers so they can be turned on/off in the
- * applications menu.
- */
- _loadInternalHandlers: function() {
- for (let internalHandler of internalHandlers) {
- if (internalHandler.enabled) {
- this._handledTypes[internalHandler.type] = internalHandler;
- }
- }
- },
-
- /**
* Load the set of handlers defined by plugins.
*
* Note: if there's more than one plugin for a given MIME type, we assume
diff --git a/components/preferences/in-content/content.js b/components/preferences/in-content/content.js
index a957b1d..10a926d 100644
--- a/components/preferences/in-content/content.js
+++ b/components/preferences/in-content/content.js
@@ -31,18 +31,6 @@ var gContentPane = {
menulist.value = FontBuilder.readFontSelection(menulist);
}
- // Show translation preferences if we may:
- const prefName = "browser.translation.ui.show";
- if (Services.prefs.getBoolPref(prefName)) {
- let row = document.getElementById("translationBox");
- row.removeAttribute("hidden");
- // Showing attribution only for Bing Translator.
- Components.utils.import("resource:///modules/translation/Translation.jsm");
- if (Translation.translationEngine == "bing") {
- document.getElementById("bingAttribution").removeAttribute("hidden");
- }
- }
-
if (AlertsServiceDND) {
let notificationsDoNotDisturbRow =
document.getElementById("notificationsDoNotDisturbRow");
@@ -77,22 +65,6 @@ var gContentPane = {
Services.urlFormatter.formatURLPref("app.support.baseURL") + "push";
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);
- let emeUIEnabled = Services.prefs.getBoolPref("browser.eme.ui.enabled");
- // Force-disable/hide on WinXP:
- if (navigator.platform.toLowerCase().startsWith("win")) {
- emeUIEnabled = emeUIEnabled && parseFloat(Services.sysinfo.get("version")) >= 6;
- }
- if (!emeUIEnabled) {
- // Don't want to rely on .hidden for the toplevel groupbox because
- // of the pane hiding/showing code potentially interfering:
- document.getElementById("drmGroup").setAttribute("style", "display: none !important");
- }
-#endif
},
// UTILITY FUNCTIONS
diff --git a/components/preferences/in-content/content.xul b/components/preferences/in-content/content.xul
index 9434cba..6823515 100644
--- a/components/preferences/in-content/content.xul
+++ b/components/preferences/in-content/content.xul
@@ -6,13 +6,6 @@
<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"
name="dom.disable_open_during_load"
@@ -22,11 +15,6 @@
<preference id="font.language.group"
name="font.language.group"
type="wstring"/>
-
- <!-- Languages -->
- <preference id="browser.translation.detectLanguage"
- name="browser.translation.detectLanguage"
- type="bool"/>
</preferences>
<script type="application/javascript"
@@ -42,29 +30,6 @@
<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">
- <columns>
- <column flex="1"/>
- <column/>
- </columns>
- <rows id="contentRows-2">
- <row id="playDRMContentRow">
- <vbox align="start">
- <checkbox id="playDRMContent" preference="media.eme.enabled"
- label="&playDRMContent.label;" accesskey="&playDRMContent.accesskey;"/>
- </vbox>
- <hbox pack="end" align="center">
- <label id="playDRMContentLink" class="text-link" value="&playDRMContent.learnMore.label;"/>
- </hbox>
- </row>
- </rows>
- </grid>
-</groupbox>
-#endif
-
<groupbox id="notificationsGroup" data-category="paneContent" hidden="true">
<caption><label>&notificationsPolicy.label;</label></caption>
<grid>
@@ -180,34 +145,3 @@
</rows>
</grid>
</groupbox>
-
-<!-- Languages -->
-<groupbox id="languagesGroup" data-category="paneContent" hidden="true">
- <caption><label>&languages.label;</label></caption>
-
- <hbox id="languagesBox" align="center">
- <description flex="1" control="chooseLanguage">&chooseLanguage.label;</description>
- <button id="chooseLanguage"
- label="&chooseButton.label;"
- accesskey="&chooseButton.accesskey;"/>
- </hbox>
-
- <hbox id="translationBox" hidden="true">
- <hbox align="center" flex="1">
- <checkbox id="translate" preference="browser.translation.detectLanguage"
- label="&translateWebPages.label;." accesskey="&translateWebPages.accesskey;"
- onsyncfrompreference="return gContentPane.updateButtons('translateButton',
- 'browser.translation.detectLanguage');"/>
- <hbox id="bingAttribution" hidden="true">
- <label>&translation.options.attribution.beforeLogo;</label>
- <separator orient="vertical" class="thin"/>
- <image id="translationAttributionImage" aria-label="Microsoft Translator"
- src="chrome://browser/content/microsoft-translator-attribution.png"/>
- <separator orient="vertical" class="thin"/>
- <label>&translation.options.attribution.afterLogo;</label>
- </hbox>
- </hbox>
- <button id="translateButton" label="&translateExceptions.label;"
- accesskey="&translateExceptions.accesskey;"/>
- </hbox>
-</groupbox>