empty_fragment.html (670B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>Navigating to the same URL with an empty fragment aborts the navigation</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <iframe src="empty_fragment_iframe.html"></iframe> 7 <script> 8 // If the navigation were not aborted, we would expect multiple load events 9 // as the page continually reloads itself. 10 async_test(function(t) { 11 var count = 0; 12 var iframe = document.querySelector('iframe'); 13 iframe.onload = t.step_func(function() { 14 count++; 15 }); 16 window.child_succeeded = t.step_func_done(function() { 17 assert_equals(count, 1); 18 }); 19 }); 20 </script>