| 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 <script> | 4 <script> |
| 5 var openedWindow; | 5 var openedWindow; |
| 6 window.onload = function() | 6 window.onload = function() |
| 7 { | 7 { |
| 8 if (window.testRunner) { | 8 if (window.testRunner) { |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| 11 testRunner.setCanOpenWindows(); | 11 testRunner.setCanOpenWindows(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 openedWindow = window.open("http://localhost:8000/security/dataURL/r
esources/foreign-domain-data-url-accessor-opened-frame.html"); | 14 openedWindow = window.open("http://localhost:8000/security/dataURL/r
esources/foreign-domain-data-url-accessor-opened-frame.html"); |
| 15 | 15 |
| 16 if (window.testRunner) | 16 window.addEventListener('message', function () |
| 17 setTimeout(pollUntilDone, 1); | 17 { |
| 18 } | 18 closeWindowAndNotifyDone(openedWindow); |
| 19 | 19 }); |
| 20 pollUntilDone = function() | |
| 21 { | |
| 22 if (!testRunner.globalFlag) { | |
| 23 setTimeout(pollUntilDone, 1); | |
| 24 return; | |
| 25 } | |
| 26 closeWindowAndNotifyDone(openedWindow); | |
| 27 } | 20 } |
| 28 </script> | 21 </script> |
| 29 </head> | 22 </head> |
| 30 <body> | 23 <body> |
| 31 <p>Opener Frame</p> | 24 <p>Opener Frame</p> |
| 32 <p id='accessMe'>Pass: Cross frame access from a data: URL on a different do
main was denied.</p> | 25 <p id='accessMe'>Pass: Cross frame access from a data: URL on a different do
main was denied.</p> |
| 33 </body> | 26 </body> |
| 34 </html> | 27 </html> |
| OLD | NEW |