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
--- 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) {