summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/testdriver/actions/crossOrigin.sub.html
blob: 38b3610af655a10f580c7f1fdb4621e4354deb82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<meta charset="utf-8">
<title>Actions in cross-origin iframe</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<iframe src="https://{{host}}:{{ports[https][1]}}/infrastructure/testdriver/actions/crossOriginChild.html"></iframe>

<script>
setup({single_test: true});
addEventListener("message", (msg) => {
    if (msg.data === "PASS") {
        done();
    } else if (msg.data === "FAIL") {
        assert_unreached("actions failed")
    }
});
</script>