[webauthn] Fix esc key breaking some dialogs
When tapping escape on an authenticator dialog with an "interesting" OnCancel() behaviour (i.e. not immediately terminating the request), the dialog is closed without calling OnCancel(). This can leave requests hanging in the background. This patch handles the press of the escape key on the dialog's contents to call OnCancel() on the model instead. Fixed: 1145724 Change-Id: I019c614cd0b40f7384944c56eab0afe45d76c8b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2530795 Commit-Queue: Nina Satragno <nsatragno@chromium.org> Commit-Queue: Martin Kreichgauer <martinkr@google.com> Reviewed-by:Martin Kreichgauer <martinkr@google.com> Cr-Commit-Position: refs/heads/master@{#826523}
Showing
Please register or sign in to comment