Bug 1331317 - only enable the pref 'media.block-autoplay-until-in-foreground' on Nightly. draft
authorAlastor Wu <alwu@mozilla.com>
Mon, 16 Jan 2017 14:56:57 +0800
changeset 461219 d688e4ef9b1d5d13ea9139938f390062fbed4492
parent 457446 d192a99be4b436f2dc839435319f7630d5d8f4b0
child 542248 fc1925998cc2189f49952e103848ae5004a7575d
push id41599
push useralwu@mozilla.com
push dateMon, 16 Jan 2017 07:01:01 +0000
bugs1331317
milestone53.0a1
Bug 1331317 - only enable the pref 'media.block-autoplay-until-in-foreground' on Nightly. MozReview-Commit-ID: JrDuWUZrITz
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5520,17 +5520,22 @@ 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 NIGHTLY_BUILD
 pref("media.block-autoplay-until-in-foreground", true);
+#else
+pref("media.block-autoplay-until-in-foreground", false);
+#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
 // see if it is available over HTTPS.