summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/portals/csp/frame-ancestors.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/portals/csp/frame-ancestors.sub.html')
-rw-r--r--testing/web-platform/tests/portals/csp/frame-ancestors.sub.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/portals/csp/frame-ancestors.sub.html b/testing/web-platform/tests/portals/csp/frame-ancestors.sub.html
new file mode 100644
index 0000000000..096ed00c7a
--- /dev/null
+++ b/testing/web-platform/tests/portals/csp/frame-ancestors.sub.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<meta name="timeout" content="long">
+<head>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <title>Blocked portals are reported correctly</title>
+</head>
+<body>
+ <portal src="/content-security-policy/frame-ancestors/support/content-security-policy.sub.html?policy=report-uri%20/reporting/resources/report.py%3Fop=put%26reportID={{$id:uuid()}}%3B%20frame-ancestors%20'none'"></portal>
+ <script async defer src="/content-security-policy/support/checkReport.sub.js?reportField=violated-directive&reportValue=frame-ancestors%20'none'&reportID={{$id}}"></script>
+</body>
+</html>