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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/resources/tag-with-pause.php

Issue 2524013002: XSS Auditor: Block by default. (Closed)
Patch Set: Rebase+Test 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 <? 1 <?
2 header("X-XSS-Protection: 1");
2 header("Content-Type: text/html; charset=utf-8"); 3 header("Content-Type: text/html; charset=utf-8");
3 ?> 4 ?>
4 <!-- <?php 5 <!-- <?php
5 # Spam a bunch of As to make sure we blow past any buffers. 6 # Spam a bunch of As to make sure we blow past any buffers.
6 print str_repeat("A", 2048); 7 print str_repeat("A", 2048);
7 ?> --> 8 ?> -->
8 <body> 9 <body>
9 <?php 10 <?php
10 print "<a ona"; 11 print "<a ona";
11 print str_repeat("a", 2000); 12 print str_repeat("a", 2000);
12 13
13 flush(); 14 flush();
14 usleep(200000); 15 usleep(200000);
15 16
16 print "click=alert(1) ttt>"; 17 print "click=alert(1) ttt>";
17 ?> 18 ?>
18 Done. 19 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698