Bug 1295923 - remove the workaround since
bug 1329403 is fixed and 'onload' won't be fired prematurely before the media element finishes loading.
MozReview-Commit-ID: beXOjulT1E
--- a/dom/media/test/test_error_in_video_document.html
+++ b/dom/media/test/test_error_in_video_document.html
@@ -44,25 +44,16 @@ function check() {
var t = getPlayableVideo(gErrorTests);
if (!t) {
todo(false, "No types supported");
} else {
SimpleTest.waitForExplicitFinish();
var f = document.createElement("iframe");
f.src = t.name;
- f.addEventListener("load", function() {
- if (documentVideo().error) {
- info("Error occured by the time we got |load| - checking directly.");
- check();
- } else {
- //TODO: Fix this todo in Bug 1295923.
- todo(false, "Error hasn't occurred yet - adding |error| event listener. This shouldn't happen, see bug 608634.");
- documentVideo().addEventListener("error", check);
- }
- });
+ f.addEventListener("load", check);
document.body.appendChild(f);
}
</script>
</pre>
</body>
</html>