From 70a2912ae89c42eb5671b0f56374fc685208331d Mon Sep 17 00:00:00 2001 From: JustOff Date: Fri, 11 May 2018 20:27:36 +0300 Subject: Remove the obsolete `media.mediasource.format-reader` control from the preferences UI --- .../palemoon/components/preferences/content.js | 22 ---------------------- .../palemoon/components/preferences/content.xul | 7 +------ .../en-US/chrome/browser/preferences/content.dtd | 2 -- 3 files changed, 1 insertion(+), 30 deletions(-) (limited to 'application/palemoon') diff --git a/application/palemoon/components/preferences/content.js b/application/palemoon/components/preferences/content.js index 0775c6270..5ae84c2f7 100644 --- a/application/palemoon/components/preferences/content.js +++ b/application/palemoon/components/preferences/content.js @@ -38,33 +38,11 @@ var gContentPane = { */ updateMSE: function () { - var checkboxMSENFR = document.getElementById('videoMSENFR'); var checkboxMSEMP4 = document.getElementById('videoMSEMP4'); var checkboxMSEWebM = document.getElementById('videoMSEWebM'); var preference = document.getElementById('media.mediasource.enabled'); - checkboxMSENFR.disabled = preference.value != true; checkboxMSEMP4.disabled = preference.value != true; checkboxMSEWebM.disabled = preference.value != true; - // Check and disable WebM if necessary - if (preference.value == true) { - this.updateMSEWebM(); - } - }, - - /** - * Utility function to enable/disable the checkbox for MSE+WebM depending - * on the value of media.mediasource.format-reader. - */ - updateMSEWebM: function () - { - var checkboxMSEWebM = document.getElementById('videoMSEWebM'); - var preference = document.getElementById('media.mediasource.format-reader'); - checkboxMSEWebM.disabled = preference.value == true; - if (preference.value == true) { - // Switch off incompatible format - Services.prefs.setBoolPref('media.mediasource.webm.enabled', false); - checkboxMSEWebM.checked = false; - } }, // BEGIN UI CODE diff --git a/application/palemoon/components/preferences/content.xul b/application/palemoon/components/preferences/content.xul index 22b6ce229..23d942e45 100644 --- a/application/palemoon/components/preferences/content.xul +++ b/application/palemoon/components/preferences/content.xul @@ -33,10 +33,7 @@ onchange="gContentPane._rebuildFonts();"/> - - + @@ -163,8 +160,6 @@ - - - -- cgit v1.2.3