summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fenced-frame/resources/window-navigation-204-inner.html
blob: e5e5adef1d6f2ba9199b75473f602494281bf9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="utils.js"></script>
<title>Fenced frame content to report the value of window.navigation</title>

<body>
<script>
function init() {
  // This file is meant to be navigated to from a <fencedframe> element. It
  // reports back to the page hosting the <fencedframe> after manual timeout
  // indicating that the 204 navigation succeeds without navigating away.
  location.href = "response-204.py";

  step_timeout(function() {
    const [window_data_key] = parseKeylist();
    writeValueToServer(window_data_key, "still in page");
  }, 1000);
}

init();
</script>
</body>