summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/support/iframe_sandbox_031.htm
blob: fb987dac384ffea22e390b57db82b1dab19058a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head><title>Page with access to localStorage and sessionStorage</title>
</head>
<body>
    <script type="text/javascript">
        try
        {
            if (window.localStorage && window.sessionStorage) {
                parent.window.postMessage("access to window.localStorage and window.sessionStorage", "*");
            }
        }
        catch(e)
        {
            parent.window.postMessage("no access to window.localStorage and window.sessionStorage", "*");
        }
    </script>
</body>
</html>