Title: [288333] trunk/Source/WebKit
Revision
288333
Author
[email protected]
Date
2022-01-20 16:34:40 -0800 (Thu, 20 Jan 2022)

Log Message

[WebAuthn] Support all valid FIDO NFC tag types
https://bugs.webkit.org/show_bug.cgi?id=234616
rdar://85871173

Reviewed by Darin Adler.

This patch modifies a check when looking for FIDO nfc tags
to support all valid FIDO tag types.

Tested using physical NFC tags provided for this bug.

* Platform/spi/Cocoa/NearFieldSPI.h:
* UIProcess/WebAuthentication/Cocoa/NfcConnection.mm:
(WebKit::NfcConnection::didDetectTags):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (288332 => 288333)


--- trunk/Source/WebKit/ChangeLog	2022-01-21 00:17:44 UTC (rev 288332)
+++ trunk/Source/WebKit/ChangeLog	2022-01-21 00:34:40 UTC (rev 288333)
@@ -1,3 +1,20 @@
+2022-01-20  J Pascoe  <[email protected]>
+
+        [WebAuthn] Support all valid FIDO NFC tag types
+        https://bugs.webkit.org/show_bug.cgi?id=234616
+        rdar://85871173
+
+        Reviewed by Darin Adler.
+
+        This patch modifies a check when looking for FIDO nfc tags
+        to support all valid FIDO tag types.
+
+        Tested using physical NFC tags provided for this bug.
+
+        * Platform/spi/Cocoa/NearFieldSPI.h:
+        * UIProcess/WebAuthentication/Cocoa/NfcConnection.mm:
+        (WebKit::NfcConnection::didDetectTags):
+
 2022-01-20  Kimmo Kinnunen  <[email protected]>
 
         Implement WebGL GPU buffer texture upload path for Cocoa getUserMedia camera streams

Modified: trunk/Source/WebKit/Platform/spi/Cocoa/NearFieldSPI.h (288332 => 288333)


--- trunk/Source/WebKit/Platform/spi/Cocoa/NearFieldSPI.h	2022-01-21 00:17:44 UTC (rev 288332)
+++ trunk/Source/WebKit/Platform/spi/Cocoa/NearFieldSPI.h	2022-01-21 00:34:40 UTC (rev 288333)
@@ -36,8 +36,10 @@
 };
 
 typedef NS_ENUM(uint32_t, NFTagType) {
-    NFTagTypeUnknown    = 0,
-    NFTagTypeGeneric4A  = 3,
+    NFTagTypeUnknown        = 0,
+    NFTagTypeGeneric4A      = 3,
+    NFTagTypeGeneric4B      = 6,
+    NFTagTypeMiFareDESFire  = 16,
 };
 
 typedef NS_OPTIONS(uint32_t, NFTechnology) {

Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcConnection.mm (288332 => 288333)


--- trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcConnection.mm	2022-01-21 00:17:44 UTC (rev 288332)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcConnection.mm	2022-01-21 00:34:40 UTC (rev 288333)
@@ -119,10 +119,10 @@
         return;
     }
 
-    // FIXME(203234): Tell users to switch to a different tag if the tag is not of type NFTagTypeGeneric4A
-    // or can't speak U2F/FIDO2.
+    // FIXME(203234): Tell users to switch to a different tag if the tag is not supported or can't speak U2F/FIDO2.
     for (NFTag *tag : tags) {
-        if (tag.type != NFTagTypeGeneric4A || ![m_session connectTag:tag])
+        // FIDO tag is ISO-DEP which can be Tag4A, Tag4B, and DESFIRE (Tag4A).
+        if ((tag.type != NFTagTypeGeneric4A && tag.type != NFTagTypeGeneric4B && tag.type != NFTagTypeMiFareDESFire) || ![m_session connectTag:tag])
             continue;
 
         if (!trySelectFidoApplet(m_session.get())) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to