Index: LayoutTests/http/tests/security/video-cross-origin-via-dom.html |
diff --git a/LayoutTests/http/tests/security/video-cross-origin-readback.html b/LayoutTests/http/tests/security/video-cross-origin-via-dom.html |
similarity index 80% |
copy from LayoutTests/http/tests/security/video-cross-origin-readback.html |
copy to LayoutTests/http/tests/security/video-cross-origin-via-dom.html |
index b14800f9858eba5a7396b3d8552261417b4f7216..2fbd6a6cacde57ff00225c007c56954bcc990e10 100644 |
--- a/LayoutTests/http/tests/security/video-cross-origin-readback.html |
+++ b/LayoutTests/http/tests/security/video-cross-origin-via-dom.html |
@@ -19,15 +19,15 @@ |
}); |
function start() { |
- findMediaElement(); |
+ mediaElement = video = document.createElement("video"); |
+ mediaElement.crossOrigin = "anonymous"; |
+ document.body.appendChild(mediaElement); |
var mediaFile = findMediaFile("video", "../../media/resources/test"); |
var type = mimeTypeForExtension(mediaFile.split('.').pop()); |
- video.src = "http://localhost:8080/security/resources/video-cross-origin-allow.php?name=" + mediaFile + "&type=" + type; |
+ video.src = "http://localhost:8080/security/resources/video-cross-origin-allow.php?no-preflight&name=" + mediaFile + "&type=" + type; |
video.play(); |
} |
</script> |
- |
- <video crossorigin></video> |
<canvas></canvas> |
</body> |
</head> |