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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.dumpChildFramesAsText();
8 testRunner.waitUntilDone();
7 testRunner.setXSSAuditorEnabled(true); 9 testRunner.setXSSAuditorEnabled(true);
8 testRunner.waitUntilDone();
9 } 10 }
10 11 function done()
11 window.onload = function() { 12 {
12 if (window.testRunner) 13 if (window.testRunner)
13 testRunner.notifyDone(); 14 testRunner.notifyDone();
14 }; 15 }
15 </script> 16 </script>
16 </head> 17 </head>
17 <body> 18 <body>
18 <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))'>"> 19 <iframe src="http://localhost:8000/security/xssAuditor/intercept/echo-form-actio n.pl/%22%20onmouseover=%22JavaScript:alert(document.domain)%22%20name=%22?m=logi n"></iframe>
19 </iframe>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698