Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-none-meta.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c0d079f01c4b9e5f00abec76d892f8a09f1f480c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/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> |