blob: 5a749bf23105b454717e05b5448b2a30bf9971a8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
<script src="../../media-resources/media-file.js"></script>
<script src="resources/canvas-video-crossorigin.js"></script>
</head>
<body>
<pre id="console"></pre>
<script>
description("Ensure that data cannot be retrieved from a canvas tainted by a video resource obtained via redirection when CORS is not enabled.");
function test()
{
testDataRetrievalForbidden("redirected video resource");
finishJSTest();
}
var video = document.createElement("video");
video.addEventListener("loadeddata", test);
video.src = `/resources/redirect.py?url=http://localhost:8000/${findMediaFile("video", "resources/test")}`;
window.jsTestIsAsync = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>