window-navigation-204-inner.html (705B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <script src="utils.js"></script> 5 <title>Fenced frame content to report the value of window.navigation</title> 6 7 <body> 8 <script> 9 function init() { 10 // This file is meant to be navigated to from a <fencedframe> element. It 11 // reports back to the page hosting the <fencedframe> after manual timeout 12 // indicating that the 204 navigation succeeds without navigating away. 13 location.href = "response-204.py"; 14 15 step_timeout(function() { 16 const [window_data_key] = parseKeylist(); 17 writeValueToServer(window_data_key, "still in page"); 18 }, 1000); 19 } 20 21 init(); 22 </script> 23 </body>