Bug 1600082 [wpt PR 20506] - Portals: Add support for frame-ancestors CSP directive., a=testonly
authorLucas Furukawa Gadani <lfg@chromium.org>
Tue, 10 Dec 2019 16:38:06 +0000
changeset 506419 cb67a73ffc247e3d989635fd59d61ffcb9ac33ff
parent 506418 1aac2de467ee7570c29e432f09d0e0fd9a274d3c
child 506420 9aba4f2d6ed7c561b3817cac6f1462a3e3eae196
push id102866
push userwptsync@mozilla.com
push dateWed, 11 Dec 2019 10:33:06 +0000
treeherderautoland@c8b835687333 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1600082, 20506, 958042, 1942487, 722009
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1600082 [wpt PR 20506] - Portals: Add support for frame-ancestors CSP directive., a=testonly Automatic update from web-platform-tests Portals: Add support for frame-ancestors CSP directive. Bug: 958042 Change-Id: I2d1129fdb0b7ff873452669d32d231a5c3c037e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1942487 Commit-Queue: Lucas Gadani <lfg@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#722009} -- wpt-commits: 5ce27e6ac31f5301f8ef12e1cc11f9cbd8002384 wpt-pr: 20506
testing/web-platform/tests/portals/csp/frame-ancestors.sub.html
new file mode 100644
--- /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../../support/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>