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

Issue 651323002: Fixing a "use after free". (Closed)

Created:
6 years, 2 months ago by mfomitchev
Modified:
6 years, 2 months ago
Reviewers:
sky, mohsen
CC:
chromium-reviews, sadrul, ben+aura_chromium.org, tfarina, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixing a "use after free". BUG=NONE Committed: https://crrev.com/05bc9c84e44660e9ba56f5566092228d3674679a Cr-Commit-Position: refs/heads/master@{#300565}

Patch Set 1 #

Patch Set 2 : Adding a comment #

Total comments: 1

Patch Set 3 : Adding a unit test for WindowEventDispatcher #

Total comments: 2

Patch Set 4 : Addressing feedback #

Patch Set 5 : Reverting the change in TouchSelectionControllerImpl since it breaks another test. Will tackle sepa… #

Total comments: 2

Patch Set 6 : Hacky fix for the crash with moving text selection handles in textfield while using --touch-devices #

Patch Set 7 : Revert prev patch submitted to the wrong CL by accident #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M ui/aura/window_event_dispatcher.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
mfomitchev
6 years, 2 months ago (2014-10-14 20:37:07 UTC) #2
mohsen
Change in touch selection controller LGTM.
6 years, 2 months ago (2014-10-14 20:41:05 UTC) #3
sky
https://codereview.chromium.org/651323002/diff/20001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/651323002/diff/20001/ui/aura/window_event_dispatcher.cc#newcode381 ui/aura/window_event_dispatcher.cc:381: if (details.dispatcher_destroyed || details.target_destroyed) How about test coverage?
6 years, 2 months ago (2014-10-14 22:55:50 UTC) #4
mfomitchev
Good point. I've added a unit test for WindowEventDispatcher. As for the change in touch_selection_controller_impl, ...
6 years, 2 months ago (2014-10-20 23:13:14 UTC) #5
sky
https://codereview.chromium.org/651323002/diff/40001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/651323002/diff/40001/ui/aura/window_event_dispatcher.cc#newcode381 ui/aura/window_event_dispatcher.cc:381: if (details.dispatcher_destroyed || details.target_destroyed) If target_destroyed is true, isn't ...
6 years, 2 months ago (2014-10-21 02:45:32 UTC) #6
mfomitchev
I also reverted the changes in TouchSelectionControllerImpl since they break another test. The real fix ...
6 years, 2 months ago (2014-10-21 20:02:04 UTC) #7
sky
https://codereview.chromium.org/651323002/diff/80001/ui/aura/window_event_dispatcher_unittest.cc File ui/aura/window_event_dispatcher_unittest.cc (right): https://codereview.chromium.org/651323002/diff/80001/ui/aura/window_event_dispatcher_unittest.cc#newcode2037 ui/aura/window_event_dispatcher_unittest.cc:2037: virtual void OnMouseEvent(ui::MouseEvent* event) override { When is a ...
6 years, 2 months ago (2014-10-21 20:08:10 UTC) #8
mfomitchev
https://codereview.chromium.org/651323002/diff/80001/ui/aura/window_event_dispatcher_unittest.cc File ui/aura/window_event_dispatcher_unittest.cc (right): https://codereview.chromium.org/651323002/diff/80001/ui/aura/window_event_dispatcher_unittest.cc#newcode2037 ui/aura/window_event_dispatcher_unittest.cc:2037: virtual void OnMouseEvent(ui::MouseEvent* event) override { Yes, the test ...
6 years, 2 months ago (2014-10-21 20:35:33 UTC) #9
mfomitchev
6 years, 2 months ago (2014-10-21 20:35:37 UTC) #10
sky
LGTM
6 years, 2 months ago (2014-10-21 20:57:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651323002/80001
6 years, 2 months ago (2014-10-21 21:00:01 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 2 months ago (2014-10-21 23:14:31 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 23:16:14 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/05bc9c84e44660e9ba56f5566092228d3674679a
Cr-Commit-Position: refs/heads/master@{#300565}

Powered by Google App Engine
This is Rietveld 408576698