Chromium Code Reviews
DescriptionFix MenuRunnerImpl Crash for context menu during drag-and-drop
A user could cause a crash in release builds of chromium by dragging an extension from the toolbar into the app menu. Then while not releasing the dragged item, use arrow keys to select another extension icon. Then pressing right-click-menu key on a keyboard.
This was because MenuRunner was not expecting nesting of MenuControllerDelegates within drag-ang-drop menus.
This was not caught earlier as key handling in MenuController had a DCHECK to prevent key handling during drag-and-drop.
This change addressed the crash in MenuRunnerImpl.
Additionally both MenuController::OnKeyDown and MenuController::SelectByChar will exit instead of handling key events. We don't want a multi-model drag-and-drop / keyboard interaction model.
TEST=MenuRunnerTest.NestingDuringDrag and manual testing
BUG=597669
Committed: https://crrev.com/896fcf08e23a57d82ff9eeb003b7b875ecb17d2b
Cr-Commit-Position: refs/heads/master@{#383717}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||||||||||||||||||||