<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>193775</bug_id>
          
          <creation_ts>2019-01-24 11:40:30 -0800</creation_ts>
          <short_desc>Calling focus() on a text field selects all of its contents</short_desc>
          <delta_ts>2019-01-24 15:09:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenson Hsieh">wenson_hsieh</reporter>
          <assigned_to name="Wenson Hsieh">wenson_hsieh</assigned_to>
          <cc>cdumez</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1497899</commentid>
    <comment_count>0</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2019-01-24 11:40:30 -0800</bug_when>
    <thetext>This is different from behavior in Chrome/FF. In the attached test case, tap the &quot;Click here…&quot; text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497900</commentid>
    <comment_count>1</comment_count>
      <attachid>360023</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2019-01-24 11:41:12 -0800</bug_when>
    <thetext>Created attachment 360023
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1497981</commentid>
    <comment_count>2</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2019-01-24 15:09:49 -0800</bug_when>
    <thetext>After writing a macOS test app, it seems that this was done to mirror the behavior when becoming first responder on an NSTextField in macOS.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>360023</attachid>
            <date>2019-01-24 11:41:12 -0800</date>
            <delta_ts>2019-01-24 11:41:12 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>focus-input.html</filename>
            <type>text/html</type>
            <size>677</size>
            <attacher name="Wenson Hsieh">wenson_hsieh</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgIDxoZWFkPgogICAgICAgIDxtZXRhIG5hbWU9InZp
ZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSI+CiAg
ICAgICAgPHN0eWxlPgogICAgICAgICAgICBpbnB1dCwgYm9keSB7CiAgICAgICAgICAgICAgICBm
b250LWZhbWlseTogc3lzdGVtLXVpOwogICAgICAgICAgICAgICAgZm9udC1zaXplOiAyMHB4Owog
ICAgICAgICAgICB9CiAgICAgICAgPC9zdHlsZT4KICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAg
ICAgIDxwIGlkPSJzZWxlY3QiPkNsaWNrIGhlcmUgdG8gZm9jdXMgdGhlIGlucHV0LjwvcD4KICAg
ICAgICA8aW5wdXQgdmFsdWU9IkhlbGxvIHdvcmxkIj48L2lucHV0PgogICAgICAgIDxpbnB1dCB0
eXBlPSJzdWJtaXQiIHZhbHVlPSJCbHVyIj48L2lucHV0PgogICAgICAgIDxzY3JpcHQ+CiAgICAg
ICAgICAgIGNvbnN0IHNlbGVjdCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJzZWxlY3QiKTsK
ICAgICAgICAgICAgc2VsZWN0LmFkZEV2ZW50TGlzdGVuZXIoImNsaWNrIiwgKCkgPT4gewogICAg
ICAgICAgICAgICAgZG9jdW1lbnQucXVlcnlTZWxlY3RvcigiaW5wdXQiKS5mb2N1cygpOwogICAg
ICAgICAgICB9KTsKICAgICAgICA8L3NjcmlwdD4KICAgIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>