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

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

Powered by Google App Engine
This is Rietveld 408576698