RESOLVED FIXED312418
[Site Isolation] CSP violation reports not sent for frame-ancestors violations in cross-origin iframes
https://bugs.webkit.org/show_bug.cgi?id=312418
Summary [Site Isolation] CSP violation reports not sent for frame-ancestors violation...
roberto_rodriguez2
Reported 2026-04-15 15:23:02 PDT
When site isolation places a cross-origin iframe in a separate WebContent process, CSP frame-ancestors violation reports are silently dropped. The NetworkProcess detects the violation and sends a SendReportToEndpoints IPC to the iframe's WebContent process, but the iframe's frame has not committed yet, so coreLocalFrame() returns null and the report is discarded. The three affected frame-ancestors tests under site isolation load a cross-origin iframe with frame-ancestors 'none'; report-uri save-report.py, then navigate to a script that reads the saved report and calls testRunner.notifyDone(). With the report never sent, that script waits indefinitely and the tests time out.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-15 15:23:11 PDT
roberto_rodriguez2
Comment 2 2026-04-15 15:30:21 PDT
Ryan Haddad
Comment 3 2026-04-28 16:30:07 PDT
Note You need to log in before you can comment on or make changes to this bug.