summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/browsing-the-web/history-traversal/window-name-after-same-origin-aux-frame-navigation.sub.html
blob: 8e0a95d8c08628abcca0edab8834585cb5e58342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE HTML>
<html>
<head>
    <!-- window.name should equal "test" after a same-origin auxiliary frame navigation. -->
    <script src='/resources/testharness.js'></script>
    <script src='/resources/testharnessreport.js'></script>
</head>
<body>
    <script>
        t = async_test("Test that the window name is correct");
        window.addEventListener("message", t.step_func_done(function(e) {
            assert_equals(e.data, true);
        }));
        window.open("support/window-name-navigation.sub.html?hostname={{host}}&shouldhavename=true&sendmessage=true");
    </script>
</body>
</html>