summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/support/iframe_sandbox_024.htm
blob: 1b0996e5899ff1ce62b6df8df0da425041969385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
<head><title>Page with access to document.cookie</title>
</head>
<body>
    <div>Cookie Read: <span id="readCookie"></span></div>
    <script type="text/javascript">
        cookie = document.cookie;
        document.cookie = "name=browser";
        parent.window.postMessage("cookies are R/W", "*");
    </script>
</body>
</html>