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

Issue 2650913006: Send keyboard-derived commands only if the key events are sent (Closed)

Created:
3 years, 11 months ago by foolip
Modified:
3 years, 11 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

Send keyboard-derived commands only if the key events are sent There was a regression in https://codereview.chromium.org/2482853002 Previously, when a keydown was handled on the browser side, the keypress was suppressed but the keyup was not. Now, all three events are suppressed. However, the fix did not take into consideration the InputMsg_SetEditCommandsForNextKeyEvent messages sent right before the call to RenderWidgetHostImpl::ForwardKeyboardEvent at two call sites. Because the keyup event was also suppressed, those commands would instead be associated with a following keydown. See https://bugs.chromium.org/p/chromium/issues/detail?id=677827#c11 for how that could end up dropping the keypress event of what followed. The fix is to introduce a ForwardKeyboardEventWithCommands which sends the commands only if they key itself is sent. BUG=677827 Review-Url: https://codereview.chromium.org/2644843004 Cr-Commit-Position: refs/heads/master@{#445687} (cherry picked from commit b7b0799fa40dd39cc93e826e6bacfea41231d989) Review-Url: https://codereview.chromium.org/2650913006 . Cr-Commit-Position: refs/branch-heads/2987@{#84} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/69e39c484ec2f1f3b7320f07f43fd0724b6cb382

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -15 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 4 chunks +31 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 2 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
foolip
3 years, 11 months ago (2017-01-25 09:54:43 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
69e39c484ec2f1f3b7320f07f43fd0724b6cb382.

Powered by Google App Engine
This is Rietveld 408576698