<?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>224124</bug_id>
          
          <creation_ts>2021-04-02 12:48:20 -0700</creation_ts>
          <short_desc>Allow the WebAuthn UI to inform users about BiometryLockout</short_desc>
          <delta_ts>2021-04-05 21:49:51 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiewen Tan">jiewen_tan</reporter>
          <assigned_to name="Jiewen Tan">jiewen_tan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>garrett_davidson</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1746616</commentid>
    <comment_count>0</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2021-04-02 12:48:20 -0700</bug_when>
    <thetext>Allow the WebAuthn UI to inform users about BiometryLockout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746617</commentid>
    <comment_count>1</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2021-04-02 12:49:01 -0700</bug_when>
    <thetext>rdar://74815938</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746621</commentid>
    <comment_count>2</comment_count>
      <attachid>425043</attachid>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2021-04-02 12:53:29 -0700</bug_when>
    <thetext>Created attachment 425043
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746645</commentid>
    <comment_count>3</comment_count>
    <who name="Garrett Davidson">garrett_davidson</who>
    <bug_when>2021-04-02 13:45:39 -0700</bug_when>
    <thetext>How did you test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746734</commentid>
    <comment_count>4</comment_count>
      <attachid>425043</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2021-04-02 17:14:19 -0700</bug_when>
    <thetext>Comment on attachment 425043
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=425043&amp;action=review

The test failures on iOS-wk2 don&apos;t seem related to this change. r=me

&gt; Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalService.mm:49
&gt; +    if ((!result || error) &amp;&amp; error.code != LAErrorBiometryLockout) {

Should we present any kind of message if the error is LAErrorBiometryLockout? How does the user recover?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746750</commentid>
    <comment_count>5</comment_count>
      <attachid>425043</attachid>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2021-04-02 19:19:06 -0700</bug_when>
    <thetext>Comment on attachment 425043
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=425043&amp;action=review

Thanks Brent for r+ this patch.

&gt;&gt; Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalService.mm:49
&gt;&gt; +    if ((!result || error) &amp;&amp; error.code != LAErrorBiometryLockout) {
&gt; 
&gt; Should we present any kind of message if the error is LAErrorBiometryLockout? How does the user recover?

We just need to let the operation continue. The UI itself has a way to detect the LAErrorBiometryLockout and then inform the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1747086</commentid>
    <comment_count>6</comment_count>
      <attachid>425043</attachid>
    <who name="Garrett Davidson">garrett_davidson</who>
    <bug_when>2021-04-05 13:29:06 -0700</bug_when>
    <thetext>Comment on attachment 425043
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=425043&amp;action=review

&gt;&gt;&gt; Source/WebKit/UIProcess/WebAuthentication/Cocoa/LocalService.mm:49
&gt;&gt;&gt; +    if ((!result || error) &amp;&amp; error.code != LAErrorBiometryLockout) {
&gt;&gt; 
&gt;&gt; Should we present any kind of message if the error is LAErrorBiometryLockout? How does the user recover?
&gt; 
&gt; We just need to let the operation continue. The UI itself has a way to detect the LAErrorBiometryLockout and then inform the user.

Yep, the UI should take care of it, but we’ve never been able to hit that code path before. Jiewen, can you test this change and send us a bug before landing if that isn’t going to work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1747175</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-04-05 17:08:08 -0700</bug_when>
    <thetext>commit-queue failed to commit attachment 425043 to WebKit repository. To retry, please set cq+ flag again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1747276</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-04-05 21:49:50 -0700</bug_when>
    <thetext>Committed r275492: &lt;https://commits.webkit.org/r275492&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425043.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>425043</attachid>
            <date>2021-04-02 12:53:29 -0700</date>
            <delta_ts>2021-04-05 21:49:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-224124-20210402125328.patch</filename>
            <type>text/plain</type>
            <size>1705</size>
            <attacher name="Jiewen Tan">jiewen_tan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc1MzcwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9X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lcnJvcik7CiAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICB9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>