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

Attempt to fix WKNavigationDelegateProxy crash #138

Closed
wants to merge 1 commit into from

Conversation

NachoEmbrace
Copy link
Contributor

My suspicion is that the original delegate is being deallocated in between the respondsTo and forwardingTarget calls; which could result in the selector being called directly to the proxy causing an unrecognized selector crash.

This PR changes the originalDelegate property so it's retained by the proxy.
I also updated the UNUserNotificationCenterDelegateProxy since it will probably run into the same issues.
Note that we were already doing this in the URLSessionDelegateProxy class.

Note: Also attempting to fix some flaky tests.

@NachoEmbrace NachoEmbrace requested a review from a team as a code owner December 4, 2024 18:55
Copy link

github-actions bot commented Dec 4, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

github-actions bot commented Dec 4, 2024

Warnings
⚠️ No CHANGELOG entry added.

Generated by 🚫 Danger Swift against 8a9a11c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant