Bug 1037370 - Fix null exception for parentNode becomes null when the last token is finished. r=cajbir, a=test-only
authorJW Wang <jwwang@mozilla.com>
Mon, 21 Jul 2014 18:26:03 -0700
changeset 217235 68e087b509e067ebc6d7acaf3da57b1a780a3b31
parent 217234 e263af5237ff665c0f5204e10514d8ee26da2103
child 217236 09fcb22f2a5dd6909f4f26efd4c2965662401a3c
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscajbir, test-only
bugs1037370
milestone33.0a2
Bug 1037370 - Fix null exception for parentNode becomes null when the last token is finished. r=cajbir, a=test-only
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");