Bug 1371741 - Don't test gUM + autoplay on about:blank. r=padenot
authorJohann Hofmann <jhofmann@mozilla.com>
Fri, 11 Jan 2019 12:26:46 +0000
changeset 453466 897f95b6d3fcfe4f15f4901f9dbb713d0e7430d9
parent 453465 10f070a6edc0ebb8dabdc8a96fdbc92b249acaaa
child 453467 da9f91aaa74bb24f8d52e5e445c661aef7402726
push id35357
push usernerli@mozilla.com
push dateFri, 11 Jan 2019 21:54:07 +0000
treeherdermozilla-central@0ce024c91511 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1371741
milestone66.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 1371741 - Don't test gUM + autoplay on about:blank. r=padenot about:blank has a null principal and can't run gUM via our new policy. Differential Revision: https://phabricator.services.mozilla.com/D16291
toolkit/content/tests/browser/browser_autoplay_policy_user_gestures.js
--- a/toolkit/content/tests/browser/browser_autoplay_policy_user_gestures.js
+++ b/toolkit/content/tests/browser/browser_autoplay_policy_user_gestures.js
@@ -212,17 +212,17 @@ async function test_webaudio_with_user_g
 
   info("- remove tab -");
   await BrowserTestUtils.removeTab(tab);
 }
 
 async function test_webaudio_with_gum(testParameters) {
   info("- open new tab -");
   let tab = await BrowserTestUtils.openNewForegroundTab(window.gBrowser,
-                                                        "about:blank");
+                                                        "https://example.com");
   info("- create audio context -");
   // We want the same audio context be used between different content
   // tasks, so it *must* be loaded by frame script.
   let frameScript = createAudioContext;
   let mm = tab.linkedBrowser.messageManager;
   mm.loadFrameScript("data:,(" + frameScript.toString() + ")();", false);
 
   info("- check whether audio context starts running -");