Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a172e772a382f83da16b2080d776ca23e6f37f93
      
https://github.com/WebKit/WebKit/commit/a172e772a382f83da16b2080d776ca23e6f37f93
  Author: Chris Dumez <[email protected]>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

  Changed paths:
    M Source/WebKit/Shared/WebCoreArgumentCoders.cpp

  Log Message:
  -----------
  Regression(259893@main) 
imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub.html
 is crashing
https://bugs.webkit.org/show_bug.cgi?id=251900
rdar://105129497

Reviewed by Alex Christensen.

CSPViolationReportBody is encoded as a non-null reference and thus should be
decoded as a Ref<CSPViolationReportBody>, not a RefPtr<CSPViolationReportBody>.

This was causing the decoded body to be null and we would crash when
dereferencing it later on.

* Source/WebKit/Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<RefPtr<WebCore::ReportBody>>::decode):

Canonical link: https://commits.webkit.org/259993@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to