RESOLVED FIXED244143
[Reporting API] Hook up to Content-Security-Policy 'report-to' directive
https://bugs.webkit.org/show_bug.cgi?id=244143
Summary [Reporting API] Hook up to Content-Security-Policy 'report-to' directive
Brent Fulgham
Reported 2022-08-19 15:15:18 PDT
Implement the stubs from Bug 243908 so that we can generate Reporting API reports for Content Security Policy rules. This patch does the following: 1. Adds support for the "Reporting-Endpoints" header. 2. Exposes a Reporting object on Document and WorkerGlobalScope that can handle reports. 3. Implements a CSSViolationReportBody class (and JS binding) 4. Update the ContentSecurityPolicy implementation to generate a CSSViolationReportBody when the CSP directives include a report-to declaration. 5. Revises the CSP implementation to construct the JSON report body to match the new specification.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-08-19 15:15:54 PDT
Brent Fulgham
Comment 4 2022-08-24 09:31:38 PDT
EWS
Comment 5 2022-08-30 17:14:55 PDT
Committed 253966@main (42f5a93823a7): <https://commits.webkit.org/253966@main> Reviewed commits have been landed. Closing PR #3613 and removing active labels.
felipe
Comment 6 2022-08-30 18:34:51 PDT
Thanks
Brent Fulgham
Comment 7 2022-08-30 18:35:40 PDT
(In reply to felipe from comment #6) > Thanks There’s still much to do, but we’re getting there!
Note You need to log in before you can comment on or make changes to this bug.