Bug 1331317 - only enable the pref 'media.block-autoplay-until-in-foreground' on Nightly. r=jwwang a=gchang
authorAlastor Wu <alwu@mozilla.com>
Mon, 16 Jan 2017 14:56:57 +0800
changeset 353602 d506e0d4d610a7c982aa71fbe28ade712ccdecdf
parent 353601 f987327e5c36f94610120cd97fed376e0447893f
child 353603 45371858bad5f86ccdbd16d026d13cfa8e23b0e8
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang, gchang
bugs1331317
milestone52.0a2
Bug 1331317 - only enable the pref 'media.block-autoplay-until-in-foreground' on Nightly. r=jwwang a=gchang MozReview-Commit-ID: JrDuWUZrITz
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -5519,17 +5519,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.