author | Sebastian Hengst <archaeopteryx@coole-files.de> |
Thu, 20 Oct 2016 20:03:17 +0200 | |
changeset 318751 | f0f1aaf051d6798e1e73d1feee07ca847333167a |
parent 318750 | 6baa5acba3fcd5fd753596db44805765e281553e |
child 318789 | c022728779df4031cd65b0981fb5e3f315a44677 |
child 318821 | 4be40c5468626cd5065cbc79674c933b908a2450 |
push id | 30851 |
push user | kwierso@gmail.com |
push date | Thu, 20 Oct 2016 18:25:08 +0000 |
treeherder | mozilla-central@f0f1aaf051d6 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | backout, backout |
bugs | 1295352 |
milestone | 52.0a1 |
backs out | 19d4e98a11915cd17c61b8563b7eb6a540d3e229 |
first release with | nightly linux32
f0f1aaf051d6
/
52.0a1
/
20161021030210
/
files
nightly linux64
f0f1aaf051d6
/
52.0a1
/
20161021030210
/
files
nightly mac
f0f1aaf051d6
/
52.0a1
/
20161021030210
/
files
nightly win32
f0f1aaf051d6
/
52.0a1
/
20161021030210
/
files
nightly win64
f0f1aaf051d6
/
52.0a1
/
20161021030210
/
files
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
releases | nightly linux32
52.0a1
/
20161021030210
/
pushlog to previous
nightly linux64
52.0a1
/
20161021030210
/
pushlog to previous
nightly mac
52.0a1
/
20161021030210
/
pushlog to previous
nightly win32
52.0a1
/
20161021030210
/
pushlog to previous
nightly win64
52.0a1
/
20161021030210
/
pushlog to previous
|
--- a/dom/media/tests/mochitest/mediaStreamPlayback.js +++ b/dom/media/tests/mochitest/mediaStreamPlayback.js @@ -249,28 +249,11 @@ var scriptsReady = Promise.all([ document.head.appendChild(el); return new Promise(r => el.onload = r); })); function createHTML(options) { return scriptsReady.then(() => realCreateHTML(options)); } -var pushPrefs = (...p) => new Promise(r => SpecialPowers.pushPrefEnv({set: p}, r)); - -// noGum - Helper to detect whether active guM tracks still exist. -// -// It relies on the fact that, by spec, device labels from enumerateDevices are -// only visible during active gum calls. They're also visible when persistent -// permissions are granted, so turn off media.navigator.permission.disabled -// (which is normally on otherwise in our tests). Lastly, we must turn on -// media.navigator.permission.fake otherwise fake devices don't count as active. - -var noGum = () => pushPrefs(["media.navigator.permission.disabled", false], - ["media.navigator.permission.fake", true]) - .then(() => navigator.mediaDevices.enumerateDevices()) - .then(([device]) => device && - is(device.label, "", "Test must leave no active gUM streams behind.")); - var runTest = testFunction => scriptsReady .then(() => runTestWhenReady(testFunction)) - .then(() => noGum()) .then(() => finish());