tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

window-navigation-204.https.html (746B)


      1 <!DOCTYPE html>
      2 <title>Test window.navigation.204</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="resources/utils.js"></script>
      6 <script src="/common/utils.js"></script>
      7 
      8 <body>
      9 
     10 <script>
     11 promise_test(async () => {
     12  const window_data_key = token();
     13 
     14  attachFencedFrame(generateURL("resources/window-navigation-204-inner.html",
     15      [window_data_key]));
     16 
     17  const actual_result  = await nextValueFromServer(window_data_key);
     18  assert_equals(actual_result, "still in page",
     19                "The fenced frame has the right value for `204 response` upon " +
     20                "subsequent navigation resulting in HTTP 204");
     21 }, "window.navigation.204");
     22 </script>
     23 
     24 </body>