<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>244143</bug_id>
          
          <creation_ts>2022-08-19 15:15:18 -0700</creation_ts>
          <short_desc>[Reporting API] Hook up to Content-Security-Policy &apos;report-to&apos; directive</short_desc>
          <delta_ts>2022-08-30 18:35:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>243908</dependson>
          <blocked>189365</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>email</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1892522</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-08-19 15:15:18 -0700</bug_when>
    <thetext>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 &quot;Reporting-Endpoints&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892523</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-19 15:15:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/98900892&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1893488</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-08-24 09:31:38 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3613</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894996</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-30 17:14:55 -0700</bug_when>
    <thetext>Committed 253966@main (42f5a93823a7): &lt;https://commits.webkit.org/253966@main&gt;

Reviewed commits have been landed. Closing PR #3613 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895014</commentid>
    <comment_count>6</comment_count>
    <who name="felipe">email</who>
    <bug_when>2022-08-30 18:34:51 -0700</bug_when>
    <thetext>Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895015</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-08-30 18:35:40 -0700</bug_when>
    <thetext>(In reply to felipe from comment #6)
&gt; Thanks

There’s still much to do, but we’re getting there!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>