summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/support/iframe_sandbox_012.htm
blob: b1e8f92fb4e23f0e45f041d3ccedc178ccbbaaee (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>
    <script type="text/javascript">
        cookie = document.cookie;
        document.cookie = "name=browser";
        parent.window.postMessage("cookies are R/W", "*");
    </script>
</body>
</html>