<?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>257804</bug_id>
          
          <creation_ts>2023-06-07 08:01:54 -0700</creation_ts>
          <short_desc>Input autocomplete for one-time-code doesn&apos;t work on iPhone Safari</short_desc>
          <delta_ts>2023-06-14 10:19:38 -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>Safari 16</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>172567</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tomer Lichtash">tomerlichtash</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>noam</cc>
    
    <cc>rmondello</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1960301</commentid>
    <comment_count>0</comment_count>
    <who name="Tomer Lichtash">tomerlichtash</who>
    <bug_when>2023-06-07 08:01:54 -0700</bug_when>
    <thetext>When receiving and SMS with one-time-code, iPhone allows its users to view they code from their keyboard, and paste it as a passkey directly to the input.
However, seems that when the input is inside a web component, this feature doesn&apos;t take affect.

I&apos;ve managed to bypass the issue with an external hidden input, which handles change events and updates the web component input, but this solution might not fit all cases, and the input inside a web component should be supported.

Example: This native input will work, but when the same input is inside a web component, it will not work for iPhone users:

```
    &lt;input
      required
      type=&quot;text&quot;
      autofocus
      autocomplete=&quot;one-time-code&quot;
      inputmode=&quot;numeric&quot;
      pattern=&quot;[0-9]{6}&quot; 
      title=&quot;Enter a 6-digit passkey&quot;
    /&gt;
```

Here&apos;s a demo with my solution: https://descope-html.vercel.app/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1960903</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-09 19:01:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/110558999&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961576</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-06-14 10:19:38 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 172567 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>