Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<body>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/content-security-policy/frame-ancestors/support/frame-ancestors-test.sub.js'></script>
<span id="escape">{{GET[policy]}}</span>
<script>
test = async_test("Testing a {{GET[child]}}-origin child with a policy of {{GET[policy]}} nested in a {{GET[parent]}}-origin parent");
const policy = document.getElementById("escape").textContent;
originFrameShouldBe("{{GET[child]}}", "{{GET[expectation]}}", policy);
</script>
</body>
</html>