3 <script src="../../resources/cross-frame-access.js"></script>
5 window.onload = function()
7 document.getElementsByTagName('h4')[0].innerHTML = document.domain;
8 window.addEventListener('message', runTest);
13 if (!window.testRunner)
16 plg.getURL("navigation-happened.html", "toNavigate");
19 myInterval = setInterval(checkIfDone, 500);
22 checkIfDone = function()
24 var numOpenWindows = testRunner.windowCount();
26 if (numOpenWindows == 2) {
28 clearInterval(myInterval);
29 testRunner.notifyDone();
30 } else if (now - start > 10000) {
31 log('TEST FAILED: Window count ' + numOpenWindows);
32 clearInterval(myInterval);
33 testRunner.notifyDone();
39 <embed name="plg" type="application/x-webkit-test-netscape"></embed>
40 <h3>Frame-with-plugin-to-navigate</h3>
42 <pre id='console'></pre>