<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:emiel.mols&#64;gmail.com" title="Emiel Mols &lt;emiel.mols&#64;gmail.com&gt;"> <span class="fn">Emiel Mols</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - calling element.focus() from -[WKWebView evaluateJavaScript:completionHandler:] does not show keyboard"
   href="https://bugs.webkit.org/show_bug.cgi?id=142757">bug 142757</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;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>emiel.mols&#64;gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - calling element.focus() from -[WKWebView evaluateJavaScript:completionHandler:] does not show keyboard"
   href="https://bugs.webkit.org/show_bug.cgi?id=142757#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - calling element.focus() from -[WKWebView evaluateJavaScript:completionHandler:] does not show keyboard"
   href="https://bugs.webkit.org/show_bug.cgi?id=142757">bug 142757</a>
              from <span class="vcard"><a class="email" href="mailto:emiel.mols&#64;gmail.com" title="Emiel Mols &lt;emiel.mols&#64;gmail.com&gt;"> <span class="fn">Emiel Mols</span></a>
</span></b>
        <pre>I've managed to work-around this on at least iOS 9 by swizzling _startAssistingNode:userIsInteracting:blurPreviousNode:userObject on WKContentView and overriding the userIsInteracting value:

Pseudo code:

    swizzle_intercept(&quot;WKContentView&quot;, &quot;_startAssistingNode:userIsInteracting:blurPreviousNode:userObject:&quot;, &amp;hackAssist);

    void hackAssist (id self, SEL _cmd, void* arg0, BOOL arg1, BOOL arg2, id arg3) {
        ((void (*)(id,SEL,void*,BOOL,BOOL,id))swizzle_interceptee(hackAssist))(self, _cmd, arg0, TRUE, arg2, arg3);
    }

Use it to your advantage while the API doesn't change ;). Cheers!</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>