Bug 1352014 - add the flag 'RELEASE_OR_BETA' for the pref 'media.block-autoplay-until-in-foreground'. draft
authorAlastor Wu <alwu@mozilla.com>
Thu, 30 Mar 2017 17:50:57 +0800
changeset 553556 876e51eb550f070d6bdfa5fe9d293c65723da2a7
parent 553510 45fdf691f72ef70be35be39c92ef58a312aa79ef
child 622114 54f989a3130f44c62156df9944bf8568affcf6f0
push id51691
push useralwu@mozilla.com
push dateThu, 30 Mar 2017 09:51:20 +0000
bugs1352014
milestone55.0a1
Bug 1352014 - add the flag 'RELEASE_OR_BETA' for the pref 'media.block-autoplay-until-in-foreground'. Put this feature only on Aurora and Nightly until it's stable enough. MozReview-Commit-ID: 4jl9gZO3wtt
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5595,17 +5595,21 @@ pref("dom.maxHardwareConcurrency", 16);
 pref("osfile.reset_worker_delay", 30000);
 #endif
 
 #if !defined(MOZ_WIDGET_GONK) && !defined(MOZ_WIDGET_ANDROID)
 pref("dom.webkitBlink.dirPicker.enabled", true);
 pref("dom.webkitBlink.filesystem.enabled", true);
 #endif
 
+#ifdef RELEASE_OR_BETA
+pref("media.block-autoplay-until-in-foreground", false);
+#else
 pref("media.block-autoplay-until-in-foreground", true);
+#endif
 
 #ifdef MOZ_STYLO
 // Is the Servo-backed style system enabled?
 pref("layout.css.servo.enabled", true);
 #endif
 
 // HSTS Priming
 // If a request is mixed-content, send an HSTS priming request to attempt to