Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression(259893@main) imported/w3c/web-platform-tests/content-security-policy/reporting-api/reporting-api-works-on-frame-ancestors.https.sub.html is crashing #9793

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

cdumez
Copy link
Contributor

@cdumez cdumez commented Feb 8, 2023

a172e77

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

65377e7

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 ⏳ πŸ§ͺ api-mac   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1   πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch-sim

@cdumez cdumez self-assigned this Feb 8, 2023
@cdumez cdumez added the WebKit2 Bugs relating to the WebKit2 API layer label Feb 8, 2023
@achristensen07 achristensen07 added the merge-queue Applied to send a pull request to merge-queue label Feb 8, 2023
…ity-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-commit-queue
Copy link
Collaborator

Committed 259993@main (a172e77): https://commits.webkit.org/259993@main

Reviewed commits have been landed. Closing PR #9793 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit a172e77 into WebKit:main Feb 8, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit2 Bugs relating to the WebKit2 API layer
Projects
None yet
4 participants