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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment.html

Issue 210033008: Don't include trailing comments in javascript snippets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment.html
diff --git a/LayoutTests/http/tests/security/xssAuditor/iframe-injection.html b/LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment.html
similarity index 74%
copy from LayoutTests/http/tests/security/xssAuditor/iframe-injection.html
copy to LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment.html
index add4e1343475caed16875c49fc37acd3f0a83452..4da1df6c0aeeff58394ff459aac6d0850987def7 100644
--- a/LayoutTests/http/tests/security/xssAuditor/iframe-injection.html
+++ b/LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment.html
@@ -9,7 +9,7 @@ if (window.testRunner) {
</script>
</head>
<body>
-<iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?q=<iframe%20src='http://127.0.0.1:8000/'></iframe>">
+<iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?clutter=/*]]>*/&q=<script>/*<!CDATA[*/alert(/XSS/)&q2=</script>">
</iframe>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xssAuditor/script-tag-with-injected-comment-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698