fido: make register requests resolve on timeout when using the Win WebAuthn API
When U2F requests that go through the native WebAuthn API on Windows time out, the modal OS dialog for the request gets dimissed but the JS request promise never gets resolved because the originating tab fails the focus check in sendResponseToActiveTabOnly(). This appears to be caused by a race between the cryptotoken-side focus check racing against Windows dismissing its dialog after receiving the WebAuthNCancelCurrentOperation() call. As a workaround, skip the focus check for all register timeouts. Bug: 930015 Change-Id: I8f44e44a4a26d499e6681331d808af58eabbb573 Reviewed-on: https://chromium-review.googlesource.com/c/1461331 Commit-Queue: Martin Kreichgauer <martinkr@chromium.org> Commit-Queue: Martin Kreichgauer <martinkr@google.com> Reviewed-by:Adam Langley <agl@chromium.org> Cr-Commit-Position: refs/heads/master@{#630586}
Showing
Please register or sign in to comment