OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 var test = async_test("Tests that a navigation in the unload handler succeeds if
it's targeting a frame that's not being unloaded."); |
| 7 function complete() { |
| 8 test.done(); |
| 9 } |
| 10 |
| 11 window.onload = function() { |
| 12 var frame = document.createElement('iframe'); |
| 13 document.body.appendChild(frame); |
| 14 |
| 15 var sibling = document.createElement('iframe'); |
| 16 document.body.appendChild(sibling); |
| 17 |
| 18 frame.contentWindow.onunload = function () { |
| 19 sibling.contentWindow.location.href = 'resources/targeted-navigation-in-un
load-handler-subframe.html'; |
| 20 } |
| 21 |
| 22 setTimeout(function() { |
| 23 frame.contentWindow.location.assign('about:blank'); |
| 24 }, 100); |
| 25 } |
| 26 </script> |
| 27 </head> |
| 28 <body> |
| 29 </body> |
| 30 </html> |
OLD | NEW |