<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] Allow clients to set the type of an input field"
   href="https://bugs.webkit.org/show_bug.cgi?id=157995">bug 157995</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 #279580 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS] Allow clients to set the type of an input field"
   href="https://bugs.webkit.org/show_bug.cgi?id=157995#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [iOS] Allow clients to set the type of an input field"
   href="https://bugs.webkit.org/show_bug.cgi?id=157995">bug 157995</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=279580&amp;action=diff" name="attach_279580" title="[iOS] Allow clients to set the type of an input field.txt">attachment 279580</a> <a href="attachment.cgi?id=279580&amp;action=edit" title="[iOS] Allow clients to set the type of an input field.txt">[details]</a></span>
[iOS] Allow clients to set the type of an input field.txt

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

<span class="quote">&gt; Source/WebKit2/ChangeLog:3
&gt; +        [iOS] Allow clients to set the type of an input field</span >

Perhaps “override” instead of “set”?

<span class="quote">&gt; Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:366
&gt; +    [_contentView reloadInputViews];</span >

It’s unfortunate that if the client sets the text content type and then immediately sets the input view, we’ll reload input views twice. Might be good to follow up with a change that coalesces these if possible.

<span class="quote">&gt; Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3032
&gt; +    if (NSString *textContentType = [_formInputSession textContentType])
&gt; +        [_traits setTextContentType:textContentType];</span >

A little strange to let the switch statement above set the type only to have it set to something else here.</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>