diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-05-11 20:27:36 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-05-11 20:27:36 +0300 |
commit | 70a2912ae89c42eb5671b0f56374fc685208331d (patch) | |
tree | 9381344a6e601b8a004eecd9fcbd3238be2776ac /application/palemoon/components/preferences/content.js | |
parent | bece236d81a519a51ae36ccac911365b2d94fedc (diff) | |
download | UXP-70a2912ae89c42eb5671b0f56374fc685208331d.tar UXP-70a2912ae89c42eb5671b0f56374fc685208331d.tar.gz UXP-70a2912ae89c42eb5671b0f56374fc685208331d.tar.lz UXP-70a2912ae89c42eb5671b0f56374fc685208331d.tar.xz UXP-70a2912ae89c42eb5671b0f56374fc685208331d.zip |
Remove the obsolete `media.mediasource.format-reader` control from the preferences UI
Diffstat (limited to 'application/palemoon/components/preferences/content.js')
-rw-r--r-- | application/palemoon/components/preferences/content.js | 22 |
1 files changed, 0 insertions, 22 deletions
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 |