<?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>257308</bug_id>
          
          <creation_ts>2023-05-24 23:50:21 -0700</creation_ts>
          <short_desc>showPicker() method of date input doesn&apos;t work</short_desc>
          <delta_ts>2023-10-12 09:23:23 -0700</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>Safari 16</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>261703</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tigran">buddha-1</reporter>
          <assigned_to name="Luke Warlow">lwarlow</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>lwarlow</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1957822</commentid>
    <comment_count>0</comment_count>
      <attachid>466494</attachid>
    <who name="Tigran">buddha-1</who>
    <bug_when>2023-05-24 23:50:21 -0700</bug_when>
    <thetext>Created attachment 466494
showPicker() method called on typing in a text field or clicking a button

The `showPicker()` method of the date input (`&lt;input type=&quot;date&quot;&gt;`) doesn&apos;t work. 

In the demo file typing any character in the text field or clicking the &quot;Show picker&quot; button call `showPicker()`. Thus those actions should open the date picker.

In Safari the date picker is not opened. No errors are thrown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959279</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-31 23:51:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/110099910&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978118</commentid>
    <comment_count>2</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-09-18 15:00:24 -0700</bug_when>
    <thetext>It should be noted that calling `.click()` on date and datetime-local inputs does correctly open the picker, so `.showPicker()` should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978121</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-18 15:07:22 -0700</bug_when>
    <thetext>It seems that these are empty:

https://searchfox.org/wubkat/source/Source/WebCore/html/InputType.cpp#611


void InputType::handleDOMActivateEvent(Event&amp;)
{
}

void InputType::showPicker()
{
}

While in case of others, we have &apos;ColorInputType::handleDOMActivateEvent&apos; as an example, we do call &apos;showPicker&apos; and have &apos;showPicker&apos; function as well.


https://searchfox.org/wubkat/source/Source/WebCore/html/ColorInputType.cpp#184</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978123</commentid>
    <comment_count>4</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-09-18 15:15:33 -0700</bug_when>
    <thetext>I&apos;m happy to take a look at this and https://bugs.webkit.org/show_bug.cgi?id=261701 tomorrow. Doesn&apos;t look to be too difficult to wire up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978280</commentid>
    <comment_count>5</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-09-19 07:36:18 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17916</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984613</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-12 09:23:20 -0700</bug_when>
    <thetext>Committed 269257@main (96b83e8d4b0e): &lt;https://commits.webkit.org/269257@main&gt;

Reviewed commits have been landed. Closing PR #17916 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>466494</attachid>
            <date>2023-05-24 23:50:21 -0700</date>
            <delta_ts>2023-05-24 23:50:21 -0700</delta_ts>
            <desc>showPicker() method called on typing in a text field or clicking a button</desc>
            <filename>input-date-show-picker.html</filename>
            <type>text/html</type>
            <size>705</size>
            <attacher name="Tigran">buddha-1</attacher>
            
              <data encoding="base64">PGh0bWwgbGFuZz0iZW4iPgo8aGVhZD4KCTxtZXRhIGNoYXJzZXQ9IlVURi04Ij4KCTxtZXRhIGh0
dHAtZXF1aXY9IlgtVUEtQ29tcGF0aWJsZSIgY29udGVudD0iSUU9ZWRnZSI+Cgk8bWV0YSBuYW1l
PSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEu
MCI+Cgk8dGl0bGU+aW5wdXQgdHlwZT1kYXRlIHNob3dQaWNrZXIoKSBtZXRob2QgV2Via2l0IGJ1
ZzwvdGl0bGU+CjwvaGVhZD4KPGJvZHk+Cgk8cD48aW5wdXQgdHlwZT0iZGF0ZSI+CgoJPHA+VHlw
aW5nIGFueSBjaGFyYWN0ZXIgaW4gPGlucHV0IHR5cGU9InRleHQiPgoJPHA+b3IgY2xpY2tpbmcg
PGJ1dHRvbj5TaG93IHBpY2tlcjwvYnV0dG9uPgoJPHA+c2hvdWxkIHNob3cgdGhlIGRhdGUgcGlj
a2VyLgoKCTxzY3JpcHQ+CgkJY29uc3QgZGF0ZXBpY2tlciA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0
b3IoJ2lucHV0W3R5cGU9ZGF0ZV0nKQoKCQlkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCdidXR0b24n
KS5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsICgpID0+IGRhdGVwaWNrZXIuc2hvd1BpY2tlcigp
KQoJCWRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ2lucHV0W3R5cGU9InRleHQiXScpLmFkZEV2ZW50
TGlzdGVuZXIoJ2tleWRvd24nLCAoKSA9PiBkYXRlcGlja2VyLnNob3dQaWNrZXIoKSkKCTwvc2Ny
aXB0Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>