1
0
Fork 0
firefox/testing/web-platform/tests/fenced-frame/embedder-csp-not-propagate.https.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
845 B
HTML

<!DOCTYPE html>
<title>Test embedder CSP not propagate to fenced frame</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="resources/utils.js"></script>
<body>
<script>
promise_test(async(t) => {
const iframe = attachIFrameContext(
{headers:[["Content-Security-Policy", "frame-src 'self'"]]});
await iframe.execute(async() => {
const fencedframe = attachFencedFrameContext();
await fencedframe.execute(async() => {
const nested_iframe = attachIFrameContext(
{origin:get_host_info().HTTPS_REMOTE_ORIGIN});
await nested_iframe.execute(() => {});
});
});
}, 'Embedder CSP should not propagate to fenced frame');
</script>
</body>