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

Issue 1147583002: Fix a crash when views::HWNDMessageHandler::HandleTouchMessage (Closed)

Created:
5 years, 7 months ago by lanwei
Modified:
5 years, 7 months ago
Reviewers:
sadrul, ananta
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a crash when views::HWNDMessageHandler::HandleTouchMessage. There is a crash when calling views::HWNDMessageHandler::HandleTouchMessage, because there are missing touch presses. Remove the CHECK for missing touch press, and ignore when this happens. BUG=316085, 488473 Committed: https://crrev.com/41065dad044cd3bbd3c9bcc24e59eeae27a6c6a9 Cr-Commit-Position: refs/heads/master@{#330751}

Patch Set 1 #

Patch Set 2 : Remove the check for missing touch press #

Total comments: 3

Patch Set 3 : Add check back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M ui/views/win/hwnd_message_handler.cc View 1 2 3 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
lanwei
5 years, 7 months ago (2015-05-15 20:17:08 UTC) #2
sadrul
As discussed offline, GenerateTouchEvent() is only called with PRESSED, MOVED, or RELEASED. So this change ...
5 years, 7 months ago (2015-05-15 20:24:01 UTC) #3
lanwei
5 years, 7 months ago (2015-05-19 23:17:38 UTC) #5
ananta
lgtm
5 years, 7 months ago (2015-05-19 23:27:13 UTC) #6
sadrul
https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc#newcode2356 ui/views/win/hwnd_message_handler.cc:2356: CHECK(!touch_event_from_palm) << "There are touch events from user's palm"; ...
5 years, 7 months ago (2015-05-19 23:38:12 UTC) #7
ananta
https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc#newcode2356 ui/views/win/hwnd_message_handler.cc:2356: CHECK(!touch_event_from_palm) << "There are touch events from user's palm"; ...
5 years, 7 months ago (2015-05-19 23:40:18 UTC) #8
sadrul
https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc#newcode2356 ui/views/win/hwnd_message_handler.cc:2356: CHECK(!touch_event_from_palm) << "There are touch events from user's palm"; ...
5 years, 7 months ago (2015-05-19 23:51:13 UTC) #9
ananta
On 2015/05/19 23:51:13, sadrul wrote: > https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc > File ui/views/win/hwnd_message_handler.cc (right): > > https://codereview.chromium.org/1147583002/diff/40001/ui/views/win/hwnd_message_handler.cc#newcode2356 > ...
5 years, 7 months ago (2015-05-20 00:06:28 UTC) #10
lanwei
5 years, 7 months ago (2015-05-20 03:23:49 UTC) #12
sadrul
lgtm
5 years, 7 months ago (2015-05-20 04:52:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147583002/80001
5 years, 7 months ago (2015-05-20 16:42:02 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 7 months ago (2015-05-20 16:46:29 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/41065dad044cd3bbd3c9bcc24e59eeae27a6c6a9 Cr-Commit-Position: refs/heads/master@{#330751}
5 years, 7 months ago (2015-05-20 16:48:07 UTC) #18
lanwei
5 years, 7 months ago (2015-05-20 17:19:02 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:80001) has been created in
https://codereview.chromium.org/1148143002/ by lanwei@chromium.org.

The reason for reverting is: We reverted the CL which needs to be fixed by this
one, so we need to revert it one as well. We will recommit it once we fully fix
and test it..

Powered by Google App Engine
This is Rietveld 408576698