| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../resources/cross-frame-access.js"></script> | 3 <script src="../resources/cross-frame-access.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <p>This tests that the main frame can access the contents of an iframe that
contains a javascript: URL loaded page</p> | 6 <p>This tests that the main frame can access the contents of an iframe that
contains a javascript: URL loaded page</p> |
| 7 <iframe id="aFrame"></iframe> | 7 <iframe id="aFrame" name="aFrame"></iframe> |
| 8 <pre id="console"></pre> | 8 <pre id="console"></pre> |
| 9 <script> | 9 <script> |
| 10 var url = "javascript:\"<html><scr" + "ipt>onload = function() { parent.
postMessage(\'LOADED\', \'*\'); } </scr" + "ipt><body><p id=\'accessMe\'></p><p>
Inner iframe.</p></body></html>\""; | 10 var url = "javascript:\"<html><scr" + "ipt>onload = function() { parent.
postMessage(\'LOADED\', \'*\'); } </scr" + "ipt><body><p id=\'accessMe\'></p><p>
Inner iframe.</p></body></html>\""; |
| 11 var iframeId ="aFrame"; | 11 var iframeId ="aFrame"; |
| 12 var passMessage = "PASS: Cross frame access to a javascript: URL was all
owed!"; | 12 var passMessage = "PASS: Cross frame access to a javascript: URL was all
owed!"; |
| 13 var failMessage = "FAIL: Cross frame access to a javascript: URL was den
ied."; | 13 var failMessage = "FAIL: Cross frame access to a javascript: URL was den
ied."; |
| 14 canAccessFrame(url, iframeId, passMessage, failMessage); | 14 canAccessFrame(url, iframeId, passMessage, failMessage); |
| 15 </script> | 15 </script> |
| 16 </body> | 16 </body> |
| 17 </html> | 17 </html> |
| OLD | NEW |