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 209240 d76eb20e74b4e29b46b07792257e48bebf4bf528
parent 209239 8f5f26e50c72eb17f4463db6a1439a2f40a30995
child 209241 273f922675b44fd6972f13b5b800f54ff8156e80
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscajbir, test-only
bugs1037370
milestone32.0
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");