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

Side by Side Diff: LayoutTests/http/tests/security/xssAuditor/full-block-script-tag.html

Issue 12324023: Merge 142063 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="http://localhost:8000/security/xssAuditor/resources/utilities.js">< /script> 4 <script src="http://localhost:8000/security/xssAuditor/resources/utilities.js">< /script>
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 testRunner.dumpChildFramesAsText(); 8 testRunner.dumpChildFramesAsText();
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 testRunner.setXSSAuditorEnabled(true); 10 testRunner.setXSSAuditorEnabled(true);
11 } 11 }
12
13 function checkframe()
14 {
15 try {
16 var ref = document.getElementById("frame").contentDocument.referrer;
17 alert('Referrer is "' + ref + '"');
18 } catch (e) {}
19 checkIfFrameLocationMatchesURLAndCallDone('frame', 'about:blank');
20 }
12 </script> 21 </script>
13 </head> 22 </head>
14 <body> 23 <body>
15 <p>There should be no content in the iframe below:</p> 24 <p>There should be no content in the iframe below:</p>
16 <iframe id="frame" onload="checkIfFrameLocationMatchesURLAndCallDone('frame', 'a bout:blank')" src="http://127.0.0.1:8000/security/xssAuditor/resources/echo-inte rtag.pl?enable-full-block=1&q=<script>alert(String.fromCharCode(0x58,0x53,0x53)) </script>"> 25 <iframe id="frame" onload="checkframe()" src="http://localhost:8000/security/xss Auditor/resources/echo-intertag.pl?enable-full-block=1&q=<script>alert(String.fr omCharCode(0x58,0x53,0x53))</script>">
17 </iframe> 26 </iframe>
18 </body> 27 </body>
19 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xssAuditor/full-block-script-tag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698