OLD | NEW |
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"></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 + "<head>" |
8 + "<scr" + "ipt>" | 8 + "<scr" + "ipt>" |
9 + "function loaded() {" | 9 + "function loaded() {" |
10 + "if (window.testRunner)" | 10 + "if (window.testRunner)" |
11 + "testRunner.globalFlag = true;" | 11 + "testRunner.globalFlag = true;" |
12 + "}" | 12 + "}" |
13 + "</scri" + "pt>" | 13 + "</scri" + "pt>" |
14 + "</head>" | 14 + "</head>" |
15 + "<body onload='loaded();'>" | 15 + "<body onload='loaded();'>" |
16 + "<p id='accessMe'>PASS: Cross frame access from a frame on a f
oreign domain denied!</p>" | 16 + "<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" | 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" |
18 + " main frame is trying to access. It should not have access t
o it.</p>" | 18 + " main frame is trying to access. It should not have access t
o it.</p>" |
19 + "</body>" | 19 + "</body>" |
20 + "</html>"; | 20 + "</html>"; |
21 | 21 |
22 var frame = document.getElementById('aFrame'); | 22 var frame = document.getElementById('aFrame'); |
23 frame.src = url; | 23 frame.src = url; |
24 </script> | 24 </script> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |