summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/sandbox/sandbox-empty.sub.html
blob: 47034710203a1fb8a3326cd7c8d8367166837628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>

<head>
    <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src='../support/logTest.sub.js?logs=["PASS2"]'></script>
    <script src="../support/alertAssert.sub.js?alerts=[]"></script>
</head>

<body>
    <p>This test passes if it does alert pass.</p>

    <script>
       window.onmessage = function(e) {
           log(e.data);
       }
    </script>

    <iframe src="support/sandboxed-post-message-to-parent.sub.html?sandbox="
            onload="log('PASS2')"></iframe>
</body>

</html>