Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /fenced-frame/embedder-csp-not-propagate.https.html - WPT Dashboard Interop Dashboard
<!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>