[webkit-changes] [WebKit/WebKit] a172e7: Regression(259893 at main) imported/w3c/web-platform-...

Chris Dumez noreply at github.com
Tue Feb 7 22:26:18 PST 2023


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

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

  Log Message:
  -----------
  Regression(259893 at 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




More information about the webkit-changes mailing list