Bug 1188240 - Enable media auto-play for mochitests. r=snorp, a=al
authorEugen Sawin <esawin@mozilla.com>
Mon, 12 Oct 2015 10:27:44 +0200
changeset 298088 446a398ed58e6bd0f98139a0fb84e62c53048417
parent 298087 9529a0efe7e68ba783cac6a91b2093613876887d
child 298089 977151d42625244a85fa1fb8399914c61464f20d
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp, al
bugs1188240
milestone43.0a2
Bug 1188240 - Enable media auto-play for mochitests. r=snorp, a=al
layout/tools/reftest/remotereftest.py
testing/profiles/prefs_general.js
--- a/layout/tools/reftest/remotereftest.py
+++ b/layout/tools/reftest/remotereftest.py
@@ -255,16 +255,18 @@ class RemoteReftest(RefTest):
         prefs["layout.css.devPixelsPerPx"] = "1.0"
         # Because Fennec is a little wacky (see bug 1156817) we need to load the
         # reftest pages at 1.0 zoom, rather than zooming to fit the CSS viewport.
         prefs["apz.allow_zooming"] = False
 
         # Disable skia-gl: see bug 907351
         prefs["gfx.canvas.azure.accelerated"] = False
 
+        prefs["media.autoplay.enabled"] = True
+
         # Set the extra prefs.
         profile.set_preferences(prefs)
 
         try:
             self._devicemanager.pushDir(profileDir, options.remoteProfile)
         except devicemanager.DMError:
             print "Automation Error: Failed to copy profiledir to device"
             raise
--- a/testing/profiles/prefs_general.js
+++ b/testing/profiles/prefs_general.js
@@ -298,16 +298,18 @@ user_pref("browser.search.countryCode", 
 // This will prevent HTTP requests for region defaults.
 user_pref("browser.search.geoSpecificDefaults", false);
 
 // Make sure the self support tab doesn't hit the network.
 user_pref("browser.selfsupport.url", "https://%(server)s/selfsupport-dummy/");
 
 user_pref("media.eme.enabled", true);
 
+user_pref("media.autoplay.enabled", true);
+
 #if defined(XP_WIN)
 user_pref("media.decoder.heuristic.dormant.timeout", 0);
 #endif
 
 // Don't prompt about e10s
 user_pref("browser.displayedE10SPrompt.1", 5);
 // Don't use auto-enabled e10s
 user_pref("browser.tabs.remote.autostart.1", false);