diff --git a/dom/media/test/test_mediarecorder_record_changing_video_resolution.html b/dom/media/test/test_mediarecorder_record_changing_video_resolution.html index 2d7e3184ebdf..d84c83b19ea7 100644 --- a/dom/media/test/test_mediarecorder_record_changing_video_resolution.html +++ b/dom/media/test/test_mediarecorder_record_changing_video_resolution.html @@ -96,6 +96,12 @@ function startTest() { video.onended = function() { is(numResizeRaised, resolution_change.length, "Expected number of resize events"); SimpleTest.finish(); + // This shouldn't be needed, however video.ended may not be set after + // seeking to the final frame. This can result in seekToNextFrame being + // called again by seekThroughFrames and onended being invoked again, + // resulting in multiple finish() calls. + // FIXME: https://bugzilla.mozilla.org/show_bug.cgi?id=1386489 + video.onended = null; }; document.getElementById("content").appendChild(video);