[webauthn] Clean up virtual authenticators on layout tests
When multiple virtual authenticators are in scope and a MakeCredential request is received, a credential is created on every authenticator due to the way we dispatch requests. Since this reflects the real behaviour (although in reality it's a very unlikely scenario), I don't think it's a bug. This created a non-deterministic failure where the ID of a created credential would not match the expected value on layout tests since the credential returned on an empty allowCredentials request would be the one created on a second authenticator. Fix this by cleaning up virtual authenticators created on individual tests so they do not interfere with each other. Bug: 1010863 Change-Id: Ibe2a987a3bb7a094008ab0c426f09065fc9bb59f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847852 Commit-Queue: Nina Satragno <nsatragno@chromium.org> Auto-Submit: Nina Satragno <nsatragno@chromium.org> Reviewed-by:Ken Buchanan <kenrb@chromium.org> Cr-Commit-Position: refs/heads/master@{#703817}
Showing
Please register or sign in to comment