Bug 218743 - Geolocation api breaks web authentication with Touch ID/Face ID
Summary: Geolocation api breaks web authentication with Touch ID/Face ID
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 14
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-11-10 03:18 PST by Levon Karapetyan
Modified: 2020-11-10 19:39 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Levon Karapetyan 2020-11-10 03:18:54 PST
When a geolocation API is used between user click and WebAuthn call, then Safari on iOS 14 restricts Touch ID/Face ID usage.

Here is a code example:
document.getElementById("mybutton").onclick = function() {
    navigator.geolocation.getCurrentPosition(register, register);
}

function register() {
    var options = {...};
    navigator.credentials.create({
        publicKey: options
    })
    .then(console.log)
    .catch(console.error);
}
Comment 1 Radar WebKit Bug Importer 2020-11-10 15:51:15 PST
<rdar://problem/71258803>