Commit a1917485 authored by Antonio Sartori's avatar Antonio Sartori Committed by Commit Bot

Add WPT for CSP frame-ancestors violation reporting with report-uri

This CL implements a simple WPT that tests if Content-Security-Policy
violation reporting works for a frame-ancestors violation when the
reporting endpoint is specified with the report-uri directive.

Bug: 1096845
Change-Id: I65e6b8618cdcf68bfe8a88228d1d500e98740295
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2336594Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794515}
parent 2ff9f1ea
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>Reporting works with frame-ancestors</title>
</head>
<body>
<iframe src="./support/not-embeddable-frame.html?reportID={{$id:uuid()}}"></iframe>
<script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=frame-ancestors&reportID={{$id}}'></script>
</body>
</html>
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0, false
Pragma: no-cache
Content-Security-Policy: frame-ancestors 'none'; report-uri ../../support/report.py?op=put&reportID={{GET[reportID]}}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment