Backed out changeset 96d02a1982f7 (bug 1274221)

This commit is contained in:
Carsten "Tomcat" Book 2016-06-09 15:18:39 +02:00
parent 60e86b393e
commit 614b2d105f

View File

@ -27,13 +27,8 @@
// navigated away (see bug 1269400 for details).
return new Promise((resolve, reject) =>
iframe.contentDocument.gUM({audio: true, video: true}, resolve, reject))
.then(s => {
// We're cloning a stream containing identical tracks (an original
// and its clone) to test that ended works both for originals
// clones when they're both owned by the same MediaStream.
// (Bug 1274221)
stream = new MediaStream([].concat(s.getTracks(), s.getTracks())
.map(t => t.clone())).clone();
.then(s => stream = s)
.then(() => {
var allTracksEnded = Promise.all(stream.getTracks().map(t => {
info("Set up ended handler for track " + t.id);
return haveEvent(t, "ended", wait(5000))