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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML.html

Issue 2524013002: XSS Auditor: Block by default. (Closed)
Patch Set: Created 4 years 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
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.setXSSAuditorEnabled(true); 7 testRunner.setXSSAuditorEnabled(true);
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 } 9 }
10 10
11 window.onload = function() { 11 window.onload = function() {
12 if (window.testRunner) 12 if (window.testRunner)
13 testRunner.notifyDone(); 13 testRunner.notifyDone();
14 }; 14 };
15 </script> 15 </script>
16 </head> 16 </head>
17 <body> 17 <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))'>"> 18 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-dom-write- innerHTML.php?q=<img src='about:blank' onerror='alert(String.fromCharCode(0x58,0 x53,0x53))'>">
19 </iframe> 19 </iframe>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698