From deffdd554c75b1700ba2fac671fafe98d64a73a0 Mon Sep 17 00:00:00 2001 From: Alfredo Yang Date: Fri, 30 Jan 2015 00:00:00 +0100 Subject: [PATCH] Bug 1127725 - free media element ndoe to release decoder. r=cajbir --- dom/media/test/test_fastSeek-forwards.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/media/test/test_fastSeek-forwards.html b/dom/media/test/test_fastSeek-forwards.html index 30ab70a224a9..7c16e5151281 100644 --- a/dom/media/test/test_fastSeek-forwards.html +++ b/dom/media/test/test_fastSeek-forwards.html @@ -29,8 +29,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1022913 var onSecondSeekComplete = function(event) { var v = event.target; + v.removeEventListener("seeked", onSecondSeekComplete); ok(v.currentTime >= v.firstSeekTarget, v.name + " seek never go backwards. time=" + v.currentTime + " firstSeekTarget=" + v.firstSeekTarget + " secondSeekTarget=" + v.secondSeekTarget); manager.finished(v.token); + removeNodeAndSource(v); }; var onFirstSeekComplete = function(event) { @@ -47,6 +49,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1022913 var onLoadedMetadata = function(event) { // Seek to the mid-point between the start and the first keyframe. var v = event.target; + v.removeEventListener("loadedmetadata", onLoadedMetadata); v.addEventListener("seeked", onFirstSeekComplete); v.firstSeekTarget = v.keyframes[1] * 0.5; v.currentTime = v.firstSeekTarget;