Bug 1289742. P4 - remove the load() call because the load algirithm will be triggered when .src is assigned. r?kaku draft
authorJW Wang <jwwang@mozilla.com>
Mon, 06 Mar 2017 15:06:07 +0800
changeset 493865 fb42c066484550369b967b4bbf95e7d8aee1af4f
parent 493864 f9d3feba171b65b5f92b4d1b54d56548f742b6e7
child 493866 c667fb70241e5ecff9715652ff061dbf3bb7f8a1
push id47870
push userjwwang@mozilla.com
push dateMon, 06 Mar 2017 07:41:53 +0000
reviewerskaku
bugs1289742
milestone54.0a1
Bug 1289742. P4 - remove the load() call because the load algirithm will be triggered when .src is assigned. r?kaku MozReview-Commit-ID: GKpKyLMa1xA
dom/media/test/test_load_same_resource.html
--- a/dom/media/test/test_load_same_resource.html
+++ b/dom/media/test/test_load_same_resource.html
@@ -76,17 +76,16 @@ function initTest(test, token) {
   var e = document.createElement(elemType);
   e.preload = "auto";
   e.src = test.name;
   if (test.duration) {
     e._expectedDuration = test.duration;
   }
   ok(true, "Trying to load " + test.name);
   e.addEventListener("loadeddata", tryClone, {once: true});
-  e.load();
   e.token = token;
   manager.started(token);
 }
 
 manager.runTests(gCloneTests, initTest);
 
 </script>
 </pre>