Bug 1476853 - Remove obsolete use of media.autoplay.enabled. r?rbarker draft
authorChris Pearce <cpearce@mozilla.com>
Thu, 19 Jul 2018 15:40:35 +1200
changeset 820269 a44a0b8c6976741bbd910205850d75347b02458f
parent 820268 4258a485cc8b57c907b2d7e398909bcae455d301
push id116773
push userbmo:cpearce@mozilla.com
push dateThu, 19 Jul 2018 09:55:09 +0000
reviewersrbarker
bugs1476853, 1188240
milestone63.0a1
Bug 1476853 - Remove obsolete use of media.autoplay.enabled. r?rbarker In Bug 1188240 we disabled autoplay on Android < API version 16 because of a vulnerability in old libstagefright, but as of Firefox 55 our minimum supported Android version is 4.1, or API verion 16. We've renamed the media.autoplay.enabled pref, so we can just remove the check on media.autoplay.enabled added in bug 1188240 as it's testing for a version of Android we no longer support anyway.. MozReview-Commit-ID: Gc8ZnlOiiMn
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -467,22 +467,16 @@ var BrowserApp = {
 
         let isTelemetryEnabled = ParentalControls.isAllowed(ParentalControls.TELEMETRY);
         Services.prefs.setBoolPref("toolkit.telemetry.enabled", isTelemetryEnabled);
 
         let isHealthReportEnabled = ParentalControls.isAllowed(ParentalControls.HEALTH_REPORT);
         SharedPreferences.forApp().setBoolPref("android.not_a_preference.healthreport.uploadEnabled", isHealthReportEnabled);
     }
 
-    let sysInfo = Cc["@mozilla.org/system-info;1"].getService(Ci.nsIPropertyBag2);
-    if (sysInfo.get("version") < 16) {
-      let defaults = Services.prefs.getDefaultBranch(null);
-      defaults.setBoolPref("media.autoplay.enabled", false);
-    }
-
     InitLater(() => {
       // The order that context menu items are added is important
       // Make sure the "Open in App" context menu item appears at the bottom of the list
       this.initContextMenu();
       ExternalApps.init();
     }, NativeWindow, "contextmenus");
 
     if (AppConstants.ACCESSIBILITY) {