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

Side by Side Diff: LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-window-location.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
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <p>Inner iframe on a foreign domain.</p> 3 <p>Inner iframe on a foreign domain.</p>
4 <script> 4 <script>
5 var url = "data:text/html,<html>" 5 var url = "data:text/html,<html>"
6 + "<head>" 6 + "<head>"
7 + "<scr" + "ipt>" 7 + "<scr" + "ipt>"
8 + "function loaded() {" 8 + "function loaded() {"
9 + "if (window.testRunner)" 9 + "window.parent.postMessage('run test', '*');"
10 + "testRunner.globalFlag = true;"
11 + "}" 10 + "}"
12 + "</scri" + "pt>" 11 + "</scri" + "pt>"
13 + "</head>" 12 + "</head>"
14 + "<body onload='loaded();'>" 13 + "<body onload='loaded();'>"
15 + "<p id='accessMe'>PASS: Cross frame access from a frame on a f oreign domain denied!</p>" 14 + "<p id='accessMe'>PASS: Cross frame access from a frame on a f oreign domain denied!</p>"
16 + "<p>Inner iframe. This iframe (which is data: URL and whose pa rent is on a foreign domain) is the frame that the" 15 + "<p>Inner iframe. This iframe (which is data: URL and whose pa rent is on a foreign domain) is the frame that the"
17 + " main frame is trying to access. It should not have access t o it.</p>" 16 + " main frame is trying to access. It should not have access t o it.</p>"
18 + "</body>" 17 + "</body>"
19 + "</html>"; 18 + "</html>";
20 19
21 window.location = url; 20 window.location = url;
22 </script> 21 </script>
23 </body> 22 </body>
24 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698