<?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>234009</bug_id>
          
          <creation_ts>2021-12-08 08:09:56 -0800</creation_ts>
          <short_desc>Add showPicker() to &lt;input&gt; elements</short_desc>
          <delta_ts>2022-06-08 03:22:29 -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>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>237192</dup_id>
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>beaufort.francois</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>daytonlowell</cc>
    
    <cc>eoconnor</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zsun</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1821561</commentid>
    <comment_count>0</comment_count>
    <who name="">beaufort.francois</who>
    <bug_when>2021-12-08 08:09:56 -0800</bug_when>
    <thetext>The showPicker() method is a new addition to HTMLInputElement which addresses a very common request from web developers: programmatically showing a picker for controls like date etc.

&lt;input id=&quot;dateInput&quot; type=&quot;date&quot;&gt;
&lt;button onclick=&quot;dateInput.showPicker()&quot;&gt;Show the date picker&lt;/button&gt;

WHATWG Spec PR: https://github.com/whatwg/html/pull/7319</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1822294</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-09 13:14:07 -0800</bug_when>
    <thetext>&lt;rdar://problem/86287452&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1854621</commentid>
    <comment_count>2</comment_count>
    <who name="">zsun</who>
    <bug_when>2022-03-24 02:31:14 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 237192 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1854628</commentid>
    <comment_count>3</comment_count>
    <who name="">zsun</who>
    <bug_when>2022-03-24 02:52:53 -0700</bug_when>
    <thetext>bug 237192 probably only covers part of this feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874292</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-06-06 07:00:02 -0700</bug_when>
    <thetext>(In reply to zsun from comment #3)
&gt; bug 237192 probably only covers part of this feature.

What part did it cover, and what part didn&apos;t it cover? It&apos;s not clear from either bug what has been implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874313</commentid>
    <comment_count>5</comment_count>
    <who name="">zsun</who>
    <bug_when>2022-06-06 09:08:43 -0700</bug_when>
    <thetext>(In reply to Sam Sneddon [:gsnedders] from comment #4)
&gt; (In reply to zsun from comment #3)
&gt; &gt; bug 237192 probably only covers part of this feature.
&gt; 
&gt; What part did it cover, and what part didn&apos;t it cover? It&apos;s not clear from
&gt; either bug what has been implemented.

The work on showPicker were motivated by three WPT tests show-picker-disabled-readonly.html, show-picker-user-gesture.html and show-picker-cross-origin-iframe.html. Just checked wpt.fyi, apart from show-picker-disabled-readonly.html, the other two tests pass for Safari now. For show-picker-disabled-readonly.html, basically it should throw for input that is readonly/disable. We have this part function in place. However, readonly should only applies to text only input types + &lt;textarea&gt;. In WebKit we need to follow specs and restrict the readonly attribute to the listed types. This is the part we need to do (see bug https://bugs.webkit.org/show_bug.cgi?id=240343).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874684</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-06-08 03:21:13 -0700</bug_when>
    <thetext>I think it&apos;s reasonable to make this bug a duplicate and track remaining work in subsequent bugs.

*** This bug has been marked as a duplicate of bug 237192 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874686</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-06-08 03:22:29 -0700</bug_when>
    <thetext>I&apos;ve put followups as a dependency of bug 237192</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>