summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/windows/restore-window-name-manual.https.html
blob: 13e8381e31350d4896de344fe11462d7d9c65653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html>
<head>
  <title>Restore window.name when navigating back from a cross-origin</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="/common/utils.js"></script>
</head>
<body>
  <script>
    function runTest() {
      const name = token();
      window.open(`resources/restore-window-name.sub.html?name=${name}`, "start");
    }

  </script>
  <p>Please click the following link and follow the instructions in the page for testing</p>
  <a target="start" href="javascript:void(0)" onclick="runTest()">run test</a>
</body>
</html>