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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/reflection-in-path.html

Issue 125513003: Test case for when the XSS vector is in the path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase test. Created 6 years, 11 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/xssAuditor/reflection-in-path.html
diff --git a/LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML.html b/LayoutTests/http/tests/security/xssAuditor/reflection-in-path.html
similarity index 53%
copy from LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML.html
copy to LayoutTests/http/tests/security/xssAuditor/reflection-in-path.html
index 227ffafc7ad82930ae490c7a0afd401b6fb0cf15..576645cb702e955dd3d92a53a5d40354d3ac54ee 100644
--- a/LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML.html
+++ b/LayoutTests/http/tests/security/xssAuditor/reflection-in-path.html
@@ -4,18 +4,18 @@
<script>
if (window.testRunner) {
testRunner.dumpAsText();
- testRunner.setXSSAuditorEnabled(true);
+ testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
+ testRunner.setXSSAuditorEnabled(true);
}
-
-window.onload = function() {
+function done()
+{
if (window.testRunner)
testRunner.notifyDone();
-};
+}
</script>
</head>
<body>
-<iframe src="http://localhost:8000/security/xssAuditor/resources/echo-dom-write-innerHTML.html?q=<img src='about:blank' onerror='alert(String.fromCharCode(0x58,0x53,0x53))'>">
-</iframe>
+<iframe src="http://localhost:8000/security/xssAuditor/intercept/echo-form-action.pl/%22%20onmouseover=%22JavaScript:alert(document.domain)%22%20name=%22?m=login"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698