diff options
Diffstat (limited to 'testing/web-platform/tests/html/browsers/windows/restore-window-name-manual.https.html')
-rw-r--r-- | testing/web-platform/tests/html/browsers/windows/restore-window-name-manual.https.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/browsers/windows/restore-window-name-manual.https.html b/testing/web-platform/tests/html/browsers/windows/restore-window-name-manual.https.html new file mode 100644 index 0000000000..13e8381e31 --- /dev/null +++ b/testing/web-platform/tests/html/browsers/windows/restore-window-name-manual.https.html @@ -0,0 +1,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> |