Bug 1280209 - [1.1] Enabled media autoplay for Android mochitests. r=snorp
authorEugen Sawin <esawin@mozilla.com>
Fri, 17 Jun 2016 12:31:10 +0200
changeset 302074 ba16194f3602ec2209accc42b9c9b1daffa930fd
parent 302073 a5823080aa8366b895df6e7f1c0f56afd6aca79e
child 302075 c719d640442bc54f0fdcbc229de9126ec5e0f047
push id78576
push useresawin@mozilla.com
push dateMon, 20 Jun 2016 10:49:51 +0000
treeherdermozilla-inbound@ba16194f3602 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1280209
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1280209 - [1.1] Enabled media autoplay for Android mochitests. r=snorp
dom/media/tests/mochitest/head.js
--- a/dom/media/tests/mochitest/head.js
+++ b/dom/media/tests/mochitest/head.js
@@ -307,17 +307,18 @@ function setupEnvironment() {
   };
 
   const isAndroid = !!navigator.userAgent.includes("Android");
 
   if (isAndroid) {
     defaultMochitestPrefs.set.push(
       ["media.navigator.video.default_width", 320],
       ["media.navigator.video.default_height", 240],
-      ["media.navigator.video.max_fr", 10]
+      ["media.navigator.video.max_fr", 10],
+      ["media.autoplay.enabled", true]
     );
   }
 
   // Running as a Mochitest.
   SimpleTest.requestFlakyTimeout("WebRTC inherently depends on timeouts");
   window.finish = () => SimpleTest.finish();
   SpecialPowers.pushPrefEnv(defaultMochitestPrefs, setTestOptions);