<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement keyboard event sending for iOS in WebKitTestRunner"
   href="https://bugs.webkit.org/show_bug.cgi?id=149676#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement keyboard event sending for iOS in WebKitTestRunner"
   href="https://bugs.webkit.org/show_bug.cgi?id=149676">bug 149676</a>
              from <span class="vcard"><a class="email" href="mailto:wenson_hsieh&#64;apple.com" title="Wenson Hsieh &lt;wenson_hsieh&#64;apple.com&gt;"> <span class="fn">Wenson Hsieh</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=262196&amp;action=diff" name="attach_262196" title="Patch">attachment 262196</a> <a href="attachment.cgi?id=262196&amp;action=edit" title="Patch">[details]</a></span>
Patch

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

<span class="quote">&gt;&gt; Tools/WebKitTestRunner/UIScriptContext/Bindings/UIScriptController.idl:38
&gt;&gt; +    void typeCharacter(DOMString character, object callback);
&gt; 
&gt; This should be named to make it clear whether it's a hardware keyboard event, or a software keyboard event.</span >

Renaming to typeCharacterUsingHardwareKeyboard

<span class="quote">&gt;&gt; Tools/WebKitTestRunner/UIScriptContext/UIScriptController.cpp:103
&gt;&gt; +void typeCharacter(JSStringRef, JSValueRef)
&gt; 
&gt; UIScriptController::</span >

Fixed.

<span class="quote">&gt;&gt; Tools/WebKitTestRunner/UIScriptContext/UIScriptController.h:62
&gt;&gt; +#endif
&gt; 
&gt; I've avoided #idfefs here, and just stubbed the functions out for non-iOS.</span >

Got it. I'll stub out the functions for non-iOS.

<span class="quote">&gt;&gt; Tools/WebKitTestRunner/cocoa/TestRunnerWKWebView.mm:66
&gt;&gt; +        _keyboardMayAcceptKeyInput = NO;
&gt; 
&gt; The name of this property is confusing. Is it really _keyboardIsVisible?</span >

Yes, keyboardIsVisible would be a more accurate name. I'll change it to that.

<span class="quote">&gt;&gt; Tools/WebKitTestRunner/ios/HIDEventGenerator.mm:139
&gt;&gt; +        kIOHIDEventOptionNone)];
&gt; 
&gt; You're leaking the event.</span >

Good catch. Adding temp RetainPtr so the event is released after sending.</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>