blob: 853eeaa44f7697fc49bbcfb084bc9d33a4cdf391 [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 localhost video resource when CORS is not enabled.");
function test()
{
testDataRetrievalForbidden("localhost video resource");
finishJSTest();
}
var video = document.createElement("video");
video.addEventListener("loadeddata", test);
video.src = `http://localhost:8080/${findMediaFile("video","resources/test")}`;
window.jsTestIsAsync = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>