Chromium Code Reviews
DescriptionMenuController::OnGestureEvent can lead to menu closures. If a MenuDelegate were to delete the controller this can lead to a use_after_free error.
This change fixes that error, by setting the item_selected_by_touch_ flag before accepting taps. Which also correctly sets it for ExitMenuRun of async menus.
TEST=MenuControllerTest.AsynchronousGestureDeletesController
BUG=596688
Committed: https://crrev.com/0430b51ca87b2b8c0b7f076ee9834995f7cafaf7
Cr-Commit-Position: refs/heads/master@{#382862}
Patch Set 1 : #
Messages
Total messages: 11 (6 generated)
|
||||||||||||||||||||||||||||