4 <script src=
"resources/cross-frame-access.js"></script>
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.dumpChildFramesAsText();
9 testRunner
.waitUntilDone();
12 receiver = function(e
) {
13 if (e
.data
== "LOADED")
18 addEventListener('message', function () {
19 targetWindow
= document
.querySelector('iframe').contentWindow
;
20 shouldThrowException('targetWindow.dispatchEvent(new CustomEvent("click"));');
21 shouldThrowException('window.dispatchEvent.call(targetWindow, new CustomEvent("click"));');
23 if (window
.testRunner
)
24 testRunner
.notifyDone();
30 <iframe src=
"http://localhost:8000/security/resources/cross-frame-iframe-for-delete-test.html"></iframe>
31 <pre id=
"console"></pre>