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

Issue 227113009: Fix sticky keys crash when handling synthetic events without a native event. (Closed)

Created:
6 years, 8 months ago by Tim Song
Modified:
6 years, 8 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Fix sticky keys crash when handling synthetic events without a native event. BUG=358270 TEST=modified tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262465 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262529

Patch Set 1 #

Patch Set 2 : mouse wheel #

Total comments: 4

Patch Set 3 : fixes #

Total comments: 6

Patch Set 4 : got reverted for a clang compile warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -28 lines) Patch
M ash/sticky_keys/sticky_keys_controller.h View 1 chunk +6 lines, -3 lines 0 comments Download
M ash/sticky_keys/sticky_keys_controller.cc View 1 2 1 chunk +10 lines, -2 lines 0 comments Download
M ash/sticky_keys/sticky_keys_unittest.cc View 1 2 3 6 chunks +80 lines, -18 lines 0 comments Download
M ui/events/event.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Tim Song
Please take a look, and let me know if there is a better way to ...
6 years, 8 months ago (2014-04-07 19:48:27 UTC) #1
sadrul
https://codereview.chromium.org/227113009/diff/20001/ash/sticky_keys/sticky_keys_controller.cc File ash/sticky_keys/sticky_keys_controller.cc (right): https://codereview.chromium.org/227113009/diff/20001/ash/sticky_keys/sticky_keys_controller.cc#newcode81 ash/sticky_keys/sticky_keys_controller.cc:81: event->flags()); It looks like this ctor for MouseWheelEvent is ...
6 years, 8 months ago (2014-04-07 21:57:33 UTC) #2
Tim Song
https://codereview.chromium.org/227113009/diff/20001/ash/sticky_keys/sticky_keys_controller.cc File ash/sticky_keys/sticky_keys_controller.cc (right): https://codereview.chromium.org/227113009/diff/20001/ash/sticky_keys/sticky_keys_controller.cc#newcode81 ash/sticky_keys/sticky_keys_controller.cc:81: event->flags()); On 2014/04/07 21:57:33, sadrul wrote: > It looks ...
6 years, 8 months ago (2014-04-07 22:23:27 UTC) #3
sadrul
https://codereview.chromium.org/227113009/diff/40001/ash/sticky_keys/sticky_keys_controller.cc File ash/sticky_keys/sticky_keys_controller.cc (right): https://codereview.chromium.org/227113009/diff/40001/ash/sticky_keys/sticky_keys_controller.cc#newcode491 ash/sticky_keys/sticky_keys_controller.cc:491: XEvent* xev = event->native_event(); Since you are creating the ...
6 years, 8 months ago (2014-04-07 22:32:10 UTC) #4
Tim Song
https://codereview.chromium.org/227113009/diff/40001/ash/sticky_keys/sticky_keys_controller.cc File ash/sticky_keys/sticky_keys_controller.cc (right): https://codereview.chromium.org/227113009/diff/40001/ash/sticky_keys/sticky_keys_controller.cc#newcode491 ash/sticky_keys/sticky_keys_controller.cc:491: XEvent* xev = event->native_event(); On 2014/04/07 22:32:10, sadrul wrote: ...
6 years, 8 months ago (2014-04-07 22:53:59 UTC) #5
sadrul
LGTM https://codereview.chromium.org/227113009/diff/40001/ash/sticky_keys/sticky_keys_controller.cc File ash/sticky_keys/sticky_keys_controller.cc (right): https://codereview.chromium.org/227113009/diff/40001/ash/sticky_keys/sticky_keys_controller.cc#newcode491 ash/sticky_keys/sticky_keys_controller.cc:491: XEvent* xev = event->native_event(); On 2014/04/07 22:53:59, Tim ...
6 years, 8 months ago (2014-04-08 03:01:33 UTC) #6
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 8 months ago (2014-04-08 16:43:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/227113009/40001
6 years, 8 months ago (2014-04-08 16:44:14 UTC) #8
commit-bot: I haz the power
Change committed as 262465
6 years, 8 months ago (2014-04-08 18:57:34 UTC) #9
tapted
A revert of this CL has been created in https://codereview.chromium.org/229053002/ by tapted@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-08 19:23:16 UTC) #10
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 8 months ago (2014-04-08 21:06:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/227113009/60001
6 years, 8 months ago (2014-04-08 21:06:30 UTC) #12
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 22:48:16 UTC) #13
Message was sent while issue was closed.
Change committed as 262529

Powered by Google App Engine
This is Rietveld 408576698