| <iframe name='aFrame' src='http://localhost:8000/security/resources/iframe-invalid-domain-change.html'></iframe> |
| testRunner.waitUntilDone(); |
| // change own domain to an invalid one |
| document.domain = 'apple.com'; |
| window.onload = cross_frame_access; |
| function cross_frame_access() { |
| var aframe = window.frames[0]; |
| if (typeof aframe.document == 'undefined') throw 1; |
| document.getElementById("console").innerHTML = "FAIL: cross-site access allowed"; |
| document.getElementById("console").innerHTML = "PASS: cross-site not access allowed"; |