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

Unified Diff: LayoutTests/http/tests/security/canvas-remote-read-svg-image.html

Issue 22604008: Allow SVG images to not taint the canvas with drawImage/drawPattern (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase after r156375 Created 7 years, 4 months 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/canvas-remote-read-svg-image.html
diff --git a/LayoutTests/http/tests/security/canvas-remote-read-svg-image.html b/LayoutTests/http/tests/security/canvas-remote-read-svg-image.html
deleted file mode 100644
index c30d6bc3f6d83643bc0c1ddd3833947c8464bd0a..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/canvas-remote-read-svg-image.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function log(msg)
-{
- document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
-}
-
-function draw()
-{
- var canvas = document.getElementById("canvas");
- var ctx = canvas.getContext("2d");
- ctx.drawImage(document.getElementById("img"), 0, 0);
-
- try {
- var data = ctx.getImageData(20, 20, 290, 75);
- log("FAIL: getImageData succeeded. Canvas not tainted.");
- } catch (e) {
- log("PASS: getImageData failed. Canvas tainted.");
- }
-}
-</script>
-</head>
-<body>
- <p>This tests that drawing a SVG image to a canvas taints the canvas</p>
- <pre id="console"></pre>
- <canvas id="canvas" width="330" height="115"></canvas>
- <img id="img" onload="draw()" src="resources/image-wrapper.svg">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698