summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html')
-rw-r--r--testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html b/testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html
new file mode 100644
index 000000000..c0d079f01
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Security-Policy" content="frame-ancestors 'none'">
+</head>
+<body>
+ <p>Reporting Frame...</p>
+ <script>
+ function onMessage(event) {
+ var p = document.createElement(p);
+ p.textContent = event.data;
+ document.body.appendChild(p);
+ window.parent.postMessage(event.data, "*");
+ }
+ window.addEventListener(
+ "message",
+ onMessage,
+ false
+ );
+ window.parent.postMessage("start test", "*");
+ </script>
+</body>
+</html> \ No newline at end of file