Stop request when device errors out on GetInfo
Currently when FidoDevice fails on AuthenticatorGetInfo command, we assume that the device supports U2F protocol and initiate U2F request. Prior to initiating request, check whether AuthenticatorGetInfo command failed due to any device communication error. If the failure was caused by device error, drop remaining requests on the device. Also, to prevent similar failures, always check for device state before dispatching consecutive requests to authenticators. Bug: 872293 Change-Id: I82d83975eec8177adb447e5e94711126884f5b5f Reviewed-on: https://chromium-review.googlesource.com/1168505 Commit-Queue: Jun Choi <hongjunchoi@chromium.org> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#585744}
Showing
Please register or sign in to comment