<?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>313569</bug_id>
          
          <creation_ts>2026-04-28 13:40:25 -0700</creation_ts>
          <short_desc>[Site Isolation] COOP error reporting doesn&apos;t work</short_desc>
          <delta_ts>2026-05-04 13:05:38 -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>New Bugs</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Tarbinian">a.tarbinian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2205463</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Tarbinian">a.tarbinian</who>
    <bug_when>2026-04-28 13:40:25 -0700</bug_when>
    <thetext>Several tests in 
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting
are broken with site isolation enabled.

These tests check that the browser is able to report a Cross-Origin-Reporing-Policy (COOP) violation. 
This is a feature which sends an HTTP POST request to a certain &quot;reporting endpoint&quot; when a COOP
violation is detected https://w3c.github.io/reporting 

​imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/report-only-four-reports.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/report-only-from-unsafe-none.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/report-only-same-origin-report-to.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-popup-same-origin-allow-popups-report-to.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-popup-same-origin-coep-report-to.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-popup-same-origin-report-to.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-popup-same-origin.https.html
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/reporting/navigation-reporting/reporting-popup-unsafe-none-report-to.https.html

Here is the text diff from one of the tests:

-PASS coop reporting test A test with both COOP and COOP report only setup to CROSS_ORIGIN with same-origin-allow-popups; report-to=&quot;coop-popup-report-endpoint&quot;, require-corp, same-origin; report-to=&quot;coop-popup-report-only-endpoint&quot;, require-corp
+FAIL coop reporting test A test with both COOP and COOP report only setup to CROSS_ORIGIN with same-origin-allow-popups; report-to=&quot;coop-popup-report-endpoint&quot;, require-corp, same-origin; report-to=&quot;coop-popup-report-only-endpoint&quot;, require-corp promise_test: Unhandled rejection with value: &quot;No report matched the expected report for endpoint: coop-report-endpoint, expected report: {\&quot;body\&quot;:{\&quot;disposition\&quot;:\&quot;enforce\&quot;,\&quot;effectivePolicy\&quot;:\&quot;same-origin-allow-popups\&quot;,\&quot;nextResponseURL\&quot;:\&quot;/uuid=(uuid)$/\&quot;,\&quot;type\&quot;:\&quot;navigation-from-response\&quot;},\&quot;url\&quot;:\&quot;https://web-platform.test:9443/html/cross-origin-opener-policy/reporting/navigation-reporting/report-only-four-reports.https.html\&quot;,\&quot;type\&quot;:\&quot;coop\&quot;}, within available reports: []&quot;
 PASS verify remaining reports

This happens because the current WebKit code in WebPage::sendReportToEndpoints uses a LocalFrame to kick off
the HTTP POST sequence. With site isolation, the frame being navigated can be a RemoteFrame which will cause
the LocalFrame to be null and the HTTP Post will never be sent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205464</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-28 13:40:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/175786872&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205555</commentid>
    <comment_count>2</comment_count>
    <who name="Anthony Tarbinian">a.tarbinian</who>
    <bug_when>2026-04-28 16:31:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63852</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2207324</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-04 13:05:36 -0700</bug_when>
    <thetext>Committed 312548@main (61696c58623d): &lt;https://commits.webkit.org/312548@main&gt;

Reviewed commits have been landed. Closing PR #63852 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>