Bug 1522923 - Turn off blocking autoplay on Beta. r=cpearce a=lizzard
authorAlastor Wu <alwu@mozilla.com>
Tue, 19 Feb 2019 20:28:25 +0000
changeset 513285 d520fdd91a48f4e7b5f858f666363629f96bd0ca
parent 513284 edb0544758a7243453f9f048cc558b98cfd0e53f
child 513286 370feb0729375ad9d0b65e3551fe0e0e2321995b
push id10789
push userrmaries@mozilla.com
push dateWed, 27 Feb 2019 20:23:22 +0000
treeherdermozilla-beta@370feb072937 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, lizzard
bugs1522923
milestone66.0
Bug 1522923 - Turn off blocking autoplay on Beta. r=cpearce a=lizzard We would enable blocking autoplay feature via roll-out (Normandy), not just fliping on the pref. Therefore, we would turn off the pref on Beta on Feb 25th, which gives us 4 weeks on and 3 weeks off on Beta. And then use Normandy to turn the feature on step by step. Differential Revision: https://phabricator.services.mozilla.com/D20329
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1475,21 +1475,27 @@ pref("media.gmp.trial-create.enabled", t
 // to enable the CDM if its disabled; it's as if the keysystem is completely
 // unsupported.
 
 #ifdef MOZ_WIDEVINE_EME
 pref("media.gmp-widevinecdm.visible", true);
 pref("media.gmp-widevinecdm.enabled", true);
 #endif
 
-
 // Switch block autoplay logic to v2, and enable UI.
 pref("media.autoplay.enabled.user-gestures-needed", true);
+
+#ifdef NIGHTLY_BUILD
 // Set Firefox to block autoplay, asking for permission by default.
 pref("media.autoplay.default", 1); // 0=Allowed, 1=Blocked
+#else
+// Set Firefox to block autoplay, asking for permission by default.
+pref("media.autoplay.default", 0); // 0=Allowed, 1=Blocked
+#endif
+
 
 #ifdef NIGHTLY_BUILD
 // Block WebAudio from playing automatically.
 pref("media.autoplay.block-webaudio", true);
 #else
 pref("media.autoplay.block-webaudio", false);
 #endif