Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-self.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-self.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-self.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c1186e77a42e843f9f7ba753e638efbe182ca76 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/frame-ancestors/reporting-frame-allows-self.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<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> |