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

Unified Diff: LayoutTests/http/tests/security/no-javascript-refresh-static.html

Issue 18865003: Do not allow HTTP refresh headers to refresh to javascript: URLs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/no-javascript-refresh-static.html
diff --git a/LayoutTests/http/tests/security/no-javascript-refresh-static.html b/LayoutTests/http/tests/security/no-javascript-refresh-static.html
new file mode 100644
index 0000000000000000000000000000000000000000..4febdfa76bc084f7b357908fb93079f32ab54d5e
--- /dev/null
+++ b/LayoutTests/http/tests/security/no-javascript-refresh-static.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<head>
+<meta http-equiv='refresh' content='0;URL=javascript:window.top.location="about:blank"'/>
+</head>
+<body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+This is the text that appears in place of a refresh.
+</body>

Powered by Google App Engine
This is Rietveld 408576698