Bug 1293613: An invalid or revoked MediaSource URI can't be trace to a MediaSource object. r?gerald
https://w3c.github.io/media-source/index.html#mediasource-attach: "If the resource fetch algorithm absolute URL matches the MediaSource object URL, ignore any preload attribute of the media element, skip any optional steps for when preload equals none"
A dummy URL or a revoked one no longer matches the MediaSource object URL, as such, the preload attribute isn't to be ignored.
MozReview-Commit-ID: EW5TOv9SSf
--- a/testing/web-platform/tests/media-source/mediasource-preload.html
+++ b/testing/web-platform/tests/media-source/mediasource-preload.html
@@ -59,16 +59,14 @@
video.onerror = test.step_func_done();
video.src = bogusURL;
}, "error occurs with bogus blob URL (" + bogusURLStyle + " MediaSource object URL) and element preload=" + preload);
}
errorWithPreloadTest("auto", "revoked");
errorWithPreloadTest("metadata", "revoked");
- errorWithPreloadTest("none", "revoked");
errorWithPreloadTest("auto", "corrupted");
errorWithPreloadTest("metadata", "corrupted");
- errorWithPreloadTest("none", "corrupted");
</script>
</body>
</html>