summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none.html
blob: e38d99a6c19cf5e99fbb7792c860532fa6df8f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<body>
    <p>Reporting Frame...</p>
    <script>
        function onMessage(event) {
            var p = document.createElement(p);
            p.textContent = event.data;
            document.body.appendChild(p);
            window.parent.postMessage(event.data, "*");
        }

        window.addEventListener(
            "message",
            onMessage,
            false
        );

        window.parent.postMessage("start test", "*");
    </script>
</body>
</html>