Bug 1032878 - Fix for test_mediarecorder_getencodeddata.html. r=rlin

This commit is contained in:
Martijn Wargers 2014-08-10 20:10:53 -07:00
parent 174ea37131
commit 16b12439ec

View File

@ -25,6 +25,9 @@ SpecialPowers.pushPrefEnv({"set": [["media.ogg.enabled", false]]},
ok(onErrorFired, 'onStop after onError');
ok(ondataavailableFired, 'ondataavailableFired');
//Apparently, as soon as the document is unloading, mediaRecorder.ondataavailable
//fires again, so set it to null to avoid failures
mediaRecorder.ondataavailable = null;
SimpleTest.finish();
}
mediaRecorder.ondataavailable = function(evt) {