OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <p>This tests that a javascript: URL loaded in an iframe inside another java
script: URL loaded iframe has access to it's parent, the | 3 <p>This tests that a javascript: URL loaded in an iframe inside another java
script: URL loaded iframe has access to it's parent, the |
4 first javascript: URL loaded iframe.</p> | 4 first javascript: URL loaded iframe.</p> |
5 <iframe id="aFrame" style="width: 500px; height: 300px;"></iframe> | 5 <iframe id="aFrame" name="aFrame" style="width: 500px; height: 300px;"></ifr
ame> |
6 <script> | 6 <script> |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 testRunner.dumpChildFramesAsText(); | 9 testRunner.dumpChildFramesAsText(); |
10 } | 10 } |
11 | 11 |
12 var innerURL = 'javascript:\\\"<html>' | 12 var innerURL = 'javascript:\\\"<html>' |
13 + "<head>" | 13 + "<head>" |
14 + "<scr" + "ipt>" | 14 + "<scr" + "ipt>" |
15 + 'parent.document.getElementById(\\\\\\\"accessMe\\\\\\\").
innerHTML = \\\\\\\"PASS: Cross frame access from a javascript: URL was allowed!
\\\\\\\";' | 15 + 'parent.document.getElementById(\\\\\\\"accessMe\\\\\\\").
innerHTML = \\\\\\\"PASS: Cross frame access from a javascript: URL was allowed!
\\\\\\\";' |
(...skipping 10 matching lines...) Expand all Loading... |
26 + "<iframe src='" + innerURL + "'></iframe>" | 26 + "<iframe src='" + innerURL + "'></iframe>" |
27 + "<p>Inner iframe.</p>" | 27 + "<p>Inner iframe.</p>" |
28 + "</body>" | 28 + "</body>" |
29 + "</html>\""; | 29 + "</html>\""; |
30 | 30 |
31 var iframe = document.getElementById("aFrame"); | 31 var iframe = document.getElementById("aFrame"); |
32 iframe.src = url; | 32 iframe.src = url; |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |