-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Nearby] Handle keyboard events in NearbyShareDialogUI
This moves the responsibility for handling keyboard events from NearbyShareAction to NearbyShareDialogUI. Only one instance of NearbyShareAction is created and reused by the SharesheetService. We previously stored a reference to a WebView in NearbyShareAction so that we could use its FocusManager in the handling of keyboard events. But opening and closing multiple sharesheets in a specific sequence could lead to a UAF as in crbug.com/1294097. Shifting this responsibility to NearbyShareDialogUI allows multiple sharesheets to exist safely at the same time. Manually verified by testing various sequences with multiple sharesheets on-device. Bug: 1294097 Change-Id: I7c737057ee70e31e5221ef6ac6e97d47735db798 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3449337 Reviewed-by: Josh Nohle <nohle@chromium.org> Commit-Queue: Michael Hansen <hansenmichael@google.com> Cr-Commit-Position: refs/heads/main@{#969113}
- Loading branch information
Michael Hansen
authored and
Chromium LUCI CQ
committed
Feb 9, 2022
1 parent
d35f89e
commit 2d9e826
Showing
4 changed files
with
65 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters