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

Side by Side Diff: LayoutTests/http/tests/security/xss-DENIED-javascript-with-spaces.html

Issue 494343003: Eliminate globalFlag usage from http security layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: consistify Created 6 years, 4 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
« no previous file with comments | « LayoutTests/http/tests/security/resources/open-window.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body onload="test()"> 1 <body onload="test()">
2 <iframe src="http://localhost:8000/security/resources/innocent-victim-with-notif y.html"></iframe> 2 <iframe src="http://localhost:8000/security/resources/innocent-victim.html"></if rame>
3 <p>There should be no alert displayed.</p> 3 <p>There should be no alert displayed.</p>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function test() 10 function test()
11 { 11 {
12 var i = document.getElementsByTagName("iframe")[0]; 12 var i = document.getElementsByTagName("iframe")[0];
13 i.src = new Array(100).join('\x20') + 'javascript:alert(document.body.innerH TML)'; 13 i.src = new Array(100).join('\x20') + 'javascript:alert(document.body.innerH TML)';
14 setTimeout(function() { 14 setTimeout(function() {
15 if (window.testRunner) 15 if (window.testRunner)
16 testRunner.notifyDone(); 16 testRunner.notifyDone();
17 }, 0); 17 }, 0);
18 } 18 }
19 </script> 19 </script>
20 </body> 20 </body>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/security/resources/open-window.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698