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

Issue 169443005: Fix crash which occurs when a widget destroys itself as a result of ET_GESTURE_TAP_DOWN (Closed)

Created:
6 years, 10 months ago by pkotwicz
Modified:
6 years, 9 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tdanderson
Visibility:
Public.

Description

Fix crash which occurs when a widget destroys itself as a result of ET_GESTURE_TAP_DOWN BUG=342867 TEST=WidgetTest.WidgetDeleted_InDispatchGestureEvent Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252214

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -116 lines) Patch
M ui/views/widget/root_view.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/widget/root_view.cc View 1 2 3 4 5 18 chunks +80 lines, -32 lines 1 comment Download
M ui/views/widget/widget_unittest.cc View 1 6 chunks +59 lines, -83 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
pkotwicz
Sadrul can you please look at the changes in ui/views
6 years, 10 months ago (2014-02-17 23:18:19 UTC) #1
sadrul
I haven't looked at the ash changes. It would be better to have someone more ...
6 years, 10 months ago (2014-02-18 12:53:26 UTC) #2
pkotwicz
Sadrul, can you please take a look? I changed the signature of DispatchEventToTarget() as you ...
6 years, 10 months ago (2014-02-18 18:57:47 UTC) #3
Mr4D (OOO till 08-26)
I looked at the ash changes this morning and had a very definitive deja vu ...
6 years, 10 months ago (2014-02-18 23:16:02 UTC) #4
pkotwicz
The ash changes are actually the exact same as the previous CL. The previous CL ...
6 years, 10 months ago (2014-02-19 00:05:50 UTC) #5
pkotwicz
Sadrul, ping?
6 years, 10 months ago (2014-02-19 04:13:35 UTC) #6
sadrul
You should separate out the ash changes in a separate CL, and reland that after ...
6 years, 10 months ago (2014-02-19 18:32:33 UTC) #7
pkotwicz
This CL only the views changes no. Sadrul, can you please take another look? https://codereview.chromium.org/169443005/diff/130001/ui/views/widget/root_view.cc ...
6 years, 10 months ago (2014-02-19 20:14:11 UTC) #8
sadrul
Thanks for splitting up the change. https://codereview.chromium.org/169443005/diff/210001/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/169443005/diff/210001/ui/views/widget/root_view.cc#newcode516 ui/views/widget/root_view.cc:516: DispatchEventToTarget(mouse_pressed_handler, &mouse_released); On ...
6 years, 10 months ago (2014-02-19 20:25:09 UTC) #9
pkotwicz
Done. Sadrul, can you please take another look?
6 years, 10 months ago (2014-02-19 21:11:31 UTC) #10
sadrul
LGTM. Thanks! https://codereview.chromium.org/169443005/diff/280002/ui/views/widget/root_view.cc File ui/views/widget/root_view.cc (right): https://codereview.chromium.org/169443005/diff/280002/ui/views/widget/root_view.cc#newcode144 ui/views/widget/root_view.cc:144: if (dispatch_details.dispatcher_destroyed) target_destroyed? https://codereview.chromium.org/169443005/diff/280002/ui/views/widget/root_view.cc#newcode642 ui/views/widget/root_view.cc:642: if (dispatch_details.dispatcher_destroyed) ...
6 years, 10 months ago (2014-02-19 21:26:18 UTC) #11
pkotwicz
The CQ bit was checked by pkotwicz@chromium.org
6 years, 10 months ago (2014-02-19 21:48:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/169443005/340001
6 years, 10 months ago (2014-02-19 22:15:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/169443005/340001
6 years, 10 months ago (2014-02-20 00:46:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/169443005/340001
6 years, 10 months ago (2014-02-20 03:38:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/169443005/340001
6 years, 10 months ago (2014-02-20 08:45:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/169443005/340001
6 years, 10 months ago (2014-02-20 12:19:27 UTC) #17
commit-bot: I haz the power
Change committed as 252214
6 years, 10 months ago (2014-02-20 13:20:57 UTC) #18
Dmitry Lomov (no reviews)
A revert of this CL has been created in https://codereview.chromium.org/173863002/ by dslomov@chromium.org. The reason for ...
6 years, 10 months ago (2014-02-20 15:19:46 UTC) #19
sadrul
6 years, 10 months ago (2014-02-20 15:45:48 UTC) #20
Message was sent while issue was closed.
+tdanderson@ FYI Looks like |target_destroyed| isn't set correctly when the
target View gets destroyed during dispatch in views.

https://codereview.chromium.org/169443005/diff/340001/ui/views/widget/root_vi...
File ui/views/widget/root_view.cc (right):

https://codereview.chromium.org/169443005/diff/340001/ui/views/widget/root_vi...
ui/views/widget/root_view.cc:784: if (dispatch_details.dispatcher_destroyed ||
Perhaps we are not setting |target_destroyed| correctly on dispatch_details. So
it would be better to check event->handled() in this if too, before the code
executes view = view->parent()

Powered by Google App Engine
This is Rietveld 408576698