webauthn: privacy tweaks for the caBLE extension.
The caBLE extension to WebAuthn is used to allow a phone to be used as a security key. However, it involves broadcasting a site-controlled value over BLE. This change causes: · the caBLE extension to be ignored if a request is made by a non-focused tab. (Otherwise the BLE broadcast could happen in a tab that isn't in the forefront.) · BLE broadcasts to be delayed for 500 milliseconds after the UI is triggered. This ensures that the UI has time to show itself and cannot be suppressed by rapidly canceling requests etc. Also note that a prior change[1] caused the caBLE extension to be ignored unless embedders opt-in as other embedders may not be displaying UI for this case. [1] https://chromium-review.googlesource.com/c/chromium/src/+/1776792 Change-Id: Id2bf2160448f58ee4c13ab649fc24eb56b45b382 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1779164 Commit-Queue: Adam Langley <agl@chromium.org> Reviewed-by:Martin Kreichgauer <martinkr@google.com> Cr-Commit-Position: refs/heads/master@{#694817}
Showing
Please register or sign in to comment