Chromium Code Reviews
DescriptionDevTools: throttle calls to ToolbarMenuButton.trigger() to avoid bad context menu state on Mac
WI.ToolbarMenuButton shows a real (not-soft) contextMenu on click. It is
possible to reach a bad state on Mac OS by focusing on a different window, then
making two fast clicks on a ToolbarMenuButton (e.g. 3 dot drawer menu) in the
originally unfocused DevTools. On the first mouse press, nothing happens, but on
the second, two mousedown events are sent within 300ms of each other. The
context menu starts to open, but is cleared almost immediately afterwards. After
that, the button no longer shows context menus.
Showing a real context menu on click only happens on ToolbarMenuButton, and
throttling its trigger function will fix the symptom. The core issue is tracked
at crbug.com/661766.
BUG=655556
Committed: https://crrev.com/b231468fd5825415fff761c25f561c8c782ab25c
Cr-Commit-Position: refs/heads/master@{#429498}
Patch Set 1 #Patch Set 2 : DevTools: throttle calls to ToolbarMenuButton.trigger() to avoid bad context menu state #Messages
Total messages: 15 (10 generated)
|