commit | 5e0a0c6a68a3509b578febde5ec103fa16665fad | [log] [tgz] |
---|---|---|
author | Jun Choi <hongjunchoi@chromium.org> | Wed Nov 14 16:12:18 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 14 16:12:18 2018 |
tree | f4028ae865397719d1e6fce1cfd33071d6c70536 | |
parent | 3e34b190866767a53598230f4a2668ec45b1bdfa [diff] |
Remove callbacks bound to base::Unretained(this) in FidoBleDevice Replace callbacks in FidoBleDevice bound to base::Unretained(this) to callbacks bound to weak pointers. When user navigates away from the site calling the WebAuthN API while request is being dispatched, callbacks in FidoBleDevice may be invoked after FidoBleDevice is destroyed. This is especially the case when the user navigates away during pairing process. In this case, FidoBleDevice::OnReadControlPointLength() will be called after FidoBleDevice is destroyed. Bug: 877344 Change-Id: I14ad94cfc9624c50eeee88feb1a12a6f8488c696 Reviewed-on: https://chromium-review.googlesource.com/c/1335727 Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org> Commit-Queue: Jun Choi <hongjunchoi@chromium.org> Cr-Commit-Position: refs/heads/master@{#607999}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .