Bug 1037370 - fix null exception for parentNode becomes null when the last token is finished. r=cajbir
authorJW Wang <jwwang@mozilla.com>
Mon, 21 Jul 2014 18:26:03 -0700
changeset 195391 92044c1a8fe091203b68e28220c1dd7702c4e2f4
parent 195390 0a2f3cd3c81425b541254136f59faffae83a3aba
child 195392 08c5f5e266c56578f7bfb47a92299312d37f09dd
push id46577
push userkwierso@gmail.com
push dateTue, 22 Jul 2014 01:29:06 +0000
treeherdermozilla-inbound@08c5f5e266c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscajbir
bugs1037370
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1037370 - fix null exception for parentNode becomes null when the last token is finished. r=cajbir
content/media/test/test_fastSeek.html
--- a/content/media/test/test_fastSeek.html
+++ b/content/media/test/test_fastSeek.html
@@ -52,19 +52,19 @@ https://bugzilla.mozilla.org/show_bug.cg
          ") should be end up roughly after keyframe (" + keyframe + ") after fastSeek");
 
       ok(v.currentTime <= v.target,
          v.name + " seekTo=" + v.target + " currentTime (" + v.currentTime +
          ") should be end up less than target after fastSeek");
 
       v.keyframeIndex++
       if (v.keyframeIndex == v.keyframes.length) {
-        manager.finished(v.token);
         v.src = "";
         v.parentNode.removeChild(v);
+        manager.finished(v.token);
       } else {
         doSeek(v);
       }
     }
 
     function startTest(test, token) {
       manager.started(token);
       v = document.createElement("video");