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

Issue 2644843004: 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:
dtapuska, sadrul, Matt Giuca
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, mac-reviews_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Target Ref:
refs/pending/heads/master
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} Committed: https://chromium.googlesource.com/chromium/src/+/b7b0799fa40dd39cc93e826e6bacfea41231d989

Patch Set 1 #

Patch Set 2 : Send keyboard-derived commands only if the key events are sent #

Total comments: 4

Patch Set 3 : add TODO #

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 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 4 chunks +31 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
foolip
PTAL at this follow-up to https://codereview.chromium.org/2482853002 Since this is an M56 blocker speedy review is ...
3 years, 11 months ago (2017-01-19 15:50:53 UTC) #8
dtapuska
On 2017/01/19 15:50:53, foolip_slow_very_sorry wrote: > PTAL at this follow-up to https://codereview.chromium.org/2482853002 > > Since ...
3 years, 11 months ago (2017-01-19 16:00:17 UTC) #9
Matt Giuca
I'm really struggling to understand how this works (I'm not familiar with any of this ...
3 years, 11 months ago (2017-01-20 00:59:41 UTC) #10
foolip
On 2017/01/19 16:00:17, dtapuska wrote: > On 2017/01/19 15:50:53, foolip_slow_very_sorry wrote: > > PTAL at ...
3 years, 11 months ago (2017-01-20 10:27:32 UTC) #11
sadrul
https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1260 content/browser/renderer_host/render_widget_host_impl.cc:1260: input_router_->SendKeyboardEvent(key_event_with_latency); InputRouter can do additional queueing/filtering. So this can ...
3 years, 11 months ago (2017-01-20 18:20:15 UTC) #12
foolip
https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1260 content/browser/renderer_host/render_widget_host_impl.cc:1260: input_router_->SendKeyboardEvent(key_event_with_latency); On 2017/01/20 18:20:15, sadrul wrote: > InputRouter can ...
3 years, 11 months ago (2017-01-20 20:01:40 UTC) #13
sadrul
https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1260 content/browser/renderer_host/render_widget_host_impl.cc:1260: input_router_->SendKeyboardEvent(key_event_with_latency); On 2017/01/20 20:01:40, foolip_slow_very_sorry wrote: > On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 21:57:22 UTC) #14
foolip
https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1260 content/browser/renderer_host/render_widget_host_impl.cc:1260: input_router_->SendKeyboardEvent(key_event_with_latency); On 2017/01/20 21:57:22, sadrul wrote: > On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 22:33:12 UTC) #15
sadrul
On 2017/01/20 22:33:12, foolip_slow_very_sorry wrote: > https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc > File content/browser/renderer_host/render_widget_host_impl.cc (right): > > https://codereview.chromium.org/2644843004/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1260 > ...
3 years, 11 months ago (2017-01-23 18:11:11 UTC) #16
foolip
The follow up issue is https://crbug.com/684298, landing this now.
3 years, 11 months ago (2017-01-24 09:07:12 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/2644843004/40001
3 years, 11 months ago (2017-01-24 09:07:33 UTC) #24
foolip
On 2017/01/24 09:07:12, foolip_UTC7 wrote: > The follow up issue is https://crbug.com/684298, landing this now. ...
3 years, 11 months ago (2017-01-24 09:08:11 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 09:11:53 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b7b0799fa40dd39cc93e826e6bac...

Powered by Google App Engine
This is Rietveld 408576698