<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [iOS] Apps using WKWebView will crash if they set the scroll view's delegate and don't nil it out later"
href="https://bugs.webkit.org/show_bug.cgi?id=159980#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [iOS] Apps using WKWebView will crash if they set the scroll view's delegate and don't nil it out later"
href="https://bugs.webkit.org/show_bug.cgi?id=159980">bug 159980</a>
from <span class="vcard"><a class="email" href="mailto:mitz@webkit.org" title="mitz@webkit.org <mitz@webkit.org>"> <span class="fn">mitz@webkit.org</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=284134&action=diff" name="attach_284134" title="Patch for [iOS] Apps using WKWebView will crash if they set the scroll views">attachment 284134</a> <a href="attachment.cgi?id=284134&action=edit" title="Patch for [iOS] Apps using WKWebView will crash if they set the scroll views">[details]</a></span>
Patch for [iOS] Apps using WKWebView will crash if they set the scroll views
I believe that the fundamental problem is that WKScrollView is subclassing UIScrollView and violating its API contract that states that the delegate property is weak. Your patch prevents this from causing a crash in one specific scenario, but I don’t understand why we can’t just fix WKScrollView. It may be as simple as using a WeakObjCPtr for the external delegate (making sure to take a strong reference any time we use it in a method). Am I missing anything?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>