Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: LayoutTests/http/tests/security/video-cross-origin-via-dom.html

Issue 75153002: Verify that video.crossOrigin performs no preflighting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add missing doctype decl Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 79%
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..97884348bf2c61c45e345eb12f2067af604bbd90 100644
--- a/LayoutTests/http/tests/security/video-cross-origin-readback.html
+++ b/LayoutTests/http/tests/security/video-cross-origin-via-dom.html
@@ -1,3 +1,4 @@
+<!doctype html>
<html>
<body onload="start()">
<script src=../../media-resources/video-test.js></script>
@@ -19,15 +20,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>

Powered by Google App Engine
This is Rietveld 408576698