<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span> changed
              <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>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #284260 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <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#c6">Comment # 6</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&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=284260&amp;action=diff" name="attach_284260" title="v2 patch for [iOS] Apps using WKWebView will crash">attachment 284260</a> <a href="attachment.cgi?id=284260&amp;action=edit" title="v2 patch for [iOS] Apps using WKWebView will crash">[details]</a></span>
v2 patch for [iOS] Apps using WKWebView will crash

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=284260&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=284260&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/UIProcess/ios/WKScrollView.mm:47
&gt; +    WebKit::WeakObjCPtr&lt;id &lt;UIScrollViewDelegate&gt;&gt; _externalDelegate;</span >

I think you can add “using namespace WebKit” to this file and avoid the WebKit:: qualifier here and elsewhere.

<span class="quote">&gt; Source/WebKit2/UIProcess/ios/WKScrollView.mm:74
&gt; +    auto externalDelegate = _externalDelegate.get();
&gt; +    return [super respondsToSelector:aSelector] || [_internalDelegate respondsToSelector:aSelector] || [externalDelegate.get() respondsToSelector:aSelector];</span >

Since you’re only using the external delegate once you don’t really have to have this local.

<span class="quote">&gt; Source/WebKit2/UIProcess/ios/WKScrollView.mm:140
&gt; +    if (_externalDelegate.get().get() == delegate)</span >

Yikes! I wonder if we should add a == override to WeakObjCPtr.</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>