Bug 1293613: An invalid or revoked MediaSource URI can't be trace to a MediaSource object. r?gerald draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Wed, 10 Aug 2016 12:01:13 +1000
changeset 399466 4fb60cf715fc6dd81afdd972a97ef0b167e5ebb4
parent 399465 92dd3d9c4b9ccdc8a47ac419bcd40fb74ab80aa6
child 399467 5b1cd30bec1114100a7fbd2341732ec05ee617eb
child 399474 8ed9693ad9d11492ab0f1e2c1f93c813d57f4e1b
child 399495 aa9bbc1f292ae30615b75b5a48e85eec16c3a268
push id25845
push userbmo:jyavenard@mozilla.com
push dateThu, 11 Aug 2016 05:43:30 +0000
reviewersgerald
bugs1293613
milestone51.0a1
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
testing/web-platform/tests/media-source/mediasource-preload.html
--- 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>