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

Issue 2692093005: Suppress context menu on virtual keyboard to fix crash (Closed)

Created:
3 years, 10 months ago by oka
Modified:
3 years, 10 months ago
Reviewers:
bshe
CC:
chromium-reviews, jam, darin-cc_chromium.org, yhanada
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Suppress context menu on virtual keyboard to fix crash KeyboardLayoutManager assumes WebContentsViewAura is the only child of the KeyboardContainer window and crash happens if this assumption is broken by context menus created on long tap. This CL fixes the issue by suppressing gesture events including the long press from being passed to renderer, who would create a context menu; gesture events which are not consumed by IME are first handled by KeyboardContentsDelegate, a WebContentsDelegate, and if the event is not a scroll event, it's consumed by the delegate. If it's a scroll event we let it go so that the renderer can scroll the IME menu element. BUG=685140 TEST= - manually tested using Link that crash doesn't happen on long press, but scroll is doable. - out/Release/browser_tests --gtest_filter="VirtualKeyboard*" Review-Url: https://codereview.chromium.org/2692093005 Cr-Commit-Position: refs/heads/master@{#450833} Committed: https://chromium.googlesource.com/chromium/src/+/626fecb851db4b9d0547752645ab0dcccc780eea

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M ui/keyboard/content/keyboard_ui_content.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
oka
.
3 years, 10 months ago (2017-02-15 03:20:47 UTC) #12
oka
PTAL.
3 years, 10 months ago (2017-02-15 03:33:24 UTC) #15
bshe
On 2017/02/15 03:33:24, oka wrote: > PTAL. Should we suppress context menu from mouse too?
3 years, 10 months ago (2017-02-15 15:30:31 UTC) #19
oka
It is somehow already surpressed. Right click triggers a button press. On Wed, Feb 15, ...
3 years, 10 months ago (2017-02-15 15:40:53 UTC) #20
bshe
On 2017/02/15 15:40:53, oka wrote: > It is somehow already surpressed. Right click triggers a ...
3 years, 10 months ago (2017-02-15 16:16:57 UTC) #21
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/2692093005/40001
3 years, 10 months ago (2017-02-15 20:12:47 UTC) #23
commit-bot: I haz the power
Failed to apply patch for ui/keyboard/content/keyboard_ui_content.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-15 21:07:09 UTC) #25
oka
Rebased.
3 years, 10 months ago (2017-02-15 21:32:16 UTC) #26
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/2692093005/60001
3 years, 10 months ago (2017-02-15 21:35:03 UTC) #29
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 23:36:00 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/626fecb851db4b9d0547752645ab...

Powered by Google App Engine
This is Rietveld 408576698