Bug 1352014 - Add the flag 'RELEASE_OR_BETA' for the pref 'media.block-autoplay-until-in-foreground'. r=bwu, a=gchang
authorAlastor Wu <alwu@mozilla.com>
Thu, 30 Mar 2017 17:50:57 +0800
changeset 395642 44f3ec83c63dcd88ee9d7dc431237e8228c84779
parent 395641 5995da420038dd34a7f74ea9bc35fa2f713fd478
child 395643 e1e5ac908ce3cab8e0db2f8642f5b98757758a2d
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwu, gchang
bugs1352014
milestone54.0a2
Bug 1352014 - Add the flag 'RELEASE_OR_BETA' for the pref 'media.block-autoplay-until-in-foreground'. r=bwu, a=gchang 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
@@ -5566,17 +5566,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