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
NOTRY=true
NOPRESUBMIT=true
Review-Url: https://codereview.chromium.org/2469813005
Cr-Commit-Position: refs/heads/master@{#429498}
(cherry picked from commit b231468fd5825415fff761c25f561c8c782ab25c)
Patch Set 1 #
Messages
Total messages: 14 (8 generated)
|
|||||||||||||||||||