summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2/close-from-within-create-page.html
blob: 51c7981c13179868b13e05f9d56c7ea4f965f181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<script>
function runTest()
{
    if (document.location.search === "?opened-window") {
        alert(window.sessionStorage['storageKey'])
        return;
    }

    window.sessionStorage['storageKey'] = 'value';
    window.open("close-from-within-create-page.html?opened-window");
}
</script>
<body onload="runTest()">
</body>
</html>