| 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 <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> |
| OLD | NEW |