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

Side by Side Diff: LayoutTests/http/tests/security/xssAuditor/block-does-not-leak-referrer.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 src="/js-test-resources/js-test-pre.js"></script> 4 <script src="/js-test-resources/js-test.js"></script>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.setXSSAuditorEnabled(true); 7 testRunner.setXSSAuditorEnabled(true);
8 window.jsTestIsAsync = true; 8 window.jsTestIsAsync = true;
9 9
10 function checkReferer() { 10 function checkReferer() {
11 window.frame = document.querySelector('iframe'); 11 window.frame = document.querySelector('iframe');
12 shouldThrow('frame.contentDocument'); 12 shouldThrow('frame.contentDocument');
13 finishJSTest(); 13 finishJSTest();
14 } 14 }
15 15
16 window.onload = function () { 16 window.onload = function () {
17 var i = document.querySelector('iframe'); 17 var i = document.querySelector('iframe');
18 i.onload = checkReferer; 18 i.onload = checkReferer;
19 i.src = 'http://localhost:8000/security/xssAuditor/resources/redir.p hp?url=http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?enab le-full-block=1%26q=<script>alert(String.fromCharCode(0x58,0x53,0x53))<' + '/scr ipt>'; 19 i.src = 'http://localhost:8000/security/xssAuditor/resources/redir.p hp?url=http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?enab le-full-block=1%26q=<script>alert(String.fromCharCode(0x58,0x53,0x53))<' + '/scr ipt>';
20 }; 20 };
21 </script> 21 </script>
22 </head> 22 </head>
23 <body> 23 <body>
24 <iframe></iframe> 24 <iframe></iframe>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698