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

Issue 2469813005: 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:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
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 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 #

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 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
luoe
4 years, 1 month ago (2016-11-02 21:10:42 UTC) #4
dgozman
lgtm
4 years, 1 month ago (2016-11-02 23:04:00 UTC) #5
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/2469813005/20001
4 years, 1 month ago (2016-11-03 01:11:12 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-03 01:16:14 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 01:18:25 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b231468fd5825415fff761c25f561c8c782ab25c
Cr-Commit-Position: refs/heads/master@{#429498}

Powered by Google App Engine
This is Rietveld 408576698