Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Issue 2492523003: DevTools: throttle calls to ToolbarMenuButton.trigger() to avoid bad context menu state on Mac (Closed)

Created:
4 years, 1 month ago by luoe
Modified:
4 years, 1 month ago
Reviewers:
kozy, dgozman
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

DevTools: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
luoe
4 years, 1 month ago (2016-11-09 18:51:52 UTC) #2
luoe
This CL was made for a merge to M55. Since I don't have committer status, ...
4 years, 1 month ago (2016-11-09 18:53:34 UTC) #3
dgozman
lgtm
4 years, 1 month ago (2016-11-09 18:59:19 UTC) #9
kozy
lgtm
4 years, 1 month ago (2016-11-09 18:59:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2492523003/1
4 years, 1 month ago (2016-11-09 19:01:30 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 19:06:49 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1)

Powered by Google App Engine
This is Rietveld 408576698