Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b22c2f36d9d3bb88113a93a8a3b21c93c7f3545a
https://github.com/WebKit/WebKit/commit/b22c2f36d9d3bb88113a93a8a3b21c93c7f3545a
Author: David Kilzer <[email protected]>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/ios/WKScrollView.mm
Log Message:
-----------
REGRESSION (306807@main): -[WKScrollViewDelegateForwarder
forwardingTargetForSelector:] reads weak internal delegate twice
<https://bugs.webkit.org/show_bug.cgi?id=324928>
<rdar://188153500>
Reviewed by Rupin Mittal.
Return the `internalDelegate` local that was checked with
`-respondsToSelector:` rather than loading the weak `_internalDelegate`
member a second time. The local already holds a strong reference to
the delegate, so the extra weak load is redundant, and returning the
local matches the `_externalDelegate` branch of the same method.
No new tests since no change in behavior.
* Source/WebKit/UIProcess/ios/WKScrollView.mm:
(-[WKScrollViewDelegateForwarder forwardingTargetForSelector:]):
Canonical link: https://commits.webkit.org/321713@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications