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

Unified Diff: LayoutTests/http/tests/security/svg-image-leak.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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/svg-image-leak.html
diff --git a/LayoutTests/http/tests/security/svg-image-leak.html b/LayoutTests/http/tests/security/svg-image-leak.html
deleted file mode 100644
index 851318af45d69dbb01292acbc38559682e9f889e..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/svg-image-leak.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-window.addEventListener("load", function() {
- var cookie = document.cookie;
-
- if (/font/.test(cookie) || /import/.test(cookie))
- alert("FAIL! Cookies received: " + cookie);
- else if (/img/.test(cookie))
- alert("PASS");
- else
- alert("FAIL: Did not receive any cookies.")
-
- document.cookie = "img=; Max-Age=-1; Path=/";
- document.cookie = "font=; Max-Age=-1; Path=/";
- document.cookie = "import=; Max-Age=-1; Path=/";
-
- if (window.testRunner)
- testRunner.notifyDone();
-}, false);
-</script>
-First we load an image as a control to make sure we can set cookies:<br>
-<img src="http://127.0.0.1:8000/security/resources/set-cookie.php?name=img&amp;value=PASS">
-
-Then we load an SVGImage to see if we can issue network requests from inside the image:<br>
-<img height=200px src='data:image/svg+xml;utf8,
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-<defs>
-
-<style type="text/css">
-@font-face { font-family: Extern2; src: url(http://127.0.0.1:8000/security/resources/set-cookie.php?name=font&amp;amp;value=FAIL) format("woff"); }
-
-.cc {
-font-family: Extern2;
-font-size: 20px;
-}
-</style>
-
-<style type="text/css">
-@import url("http://127.0.0.1:8000/security/resources/set-cookie.php?name=import&amp;amp;value=FAIL");
-</style>
-</defs>
-
-<polygon id="triangle" points="0,0 0,50 50,0" fill="#00FF00" stroke="#004400"/>
-<text x="50" y="50" class="cc">groebert</text>
-
-</svg>
-'>

Powered by Google App Engine
This is Rietveld 408576698