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 hash navigation in the unload handler will n
ot block the initial navigation"); |
| 7 window.onload = function() { |
| 8 var i = document.createElement('iframe'); |
| 9 document.body.appendChild(i); |
| 10 i.contentWindow.onunload = function () { |
| 11 i.contentWindow.location.hash = '#hash'; |
| 12 } |
| 13 setTimeout(function() { |
| 14 i.contentWindow.location.assign('about:blank'); |
| 15 setTimeout(function() { |
| 16 test.step(function() { assert_true(!i.contentWindow.location.hash &&
i.contentWindow.location.href == 'about:blank'); }); |
| 17 test.done(); |
| 18 }, 100); |
| 19 }, 100); |
| 20 } |
| 21 </script> |
| 22 </head> |
| 23 <body> |
| 24 </body> |
| 25 </html> |
OLD | NEW |