Bug 1542921 - turn on block autoplay by default. r=cpearce a=pascalc
authoralwu <alwu@mozilla.com>
Tue, 09 Apr 2019 23:43:33 +0000
changeset 523127 778c3da2f7ae901e6cb55115217f8fb32a798bae
parent 523126 ea0b308de5c414a253e7d851286dea8d6879a43a
child 523128 1cdd3ceab2bc361c4c8a4af20c2baf857e898104
push id11064
push userapavel@mozilla.com
push dateThu, 11 Apr 2019 08:46:03 +0000
treeherdermozilla-beta@03e1b51654e2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, pascalc
bugs1542921
milestone67.0
Bug 1542921 - turn on block autoplay by default. r=cpearce a=pascalc As we have successfully rolled out the feature via Normandy in 66, we should turn the feature on in >= 67 to not have to rely on Normandy going forward any more. Differential Revision: https://phabricator.services.mozilla.com/D26713
browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1499,25 +1499,18 @@ pref("media.gmp-gmpopenh264.visible", fa
 pref("media.gmp-gmpopenh264.enabled", false);
 #else
 // Not Windows on ARM64
 pref("media.gmp-gmpopenh264.visible", true);
 pref("media.gmp-gmpopenh264.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