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

Issue 2730903005: Start with event_target in for loop to avoid GetEventTargeter crash. (Closed)

Created:
3 years, 9 months ago by riajiang
Modified:
3 years, 9 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sky
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start with event_target in for loop to avoid GetEventTargeter crash. Came across this while working on the CL for dispatching event to root window if target window has already been deleted ( https://codereview.chromium.org/2696873002). If the target window we are starting from is already the root window in that WindowTreeHost, starting with the parent target (in this case aura::Env) for that window would cause crash when trying to access its event targeter. Change it to start with the event_target itself. BUG=687700, 664617 TEST=aura_unittests Review-Url: https://codereview.chromium.org/2730903005 Cr-Commit-Position: refs/heads/master@{#454780} Committed: https://chromium.googlesource.com/chromium/src/+/d8b7d84c49f08b6e50de6da191264401c074c5a0

Patch Set 1 #

Patch Set 2 : test #

Total comments: 6

Patch Set 3 : nits #

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

Messages

Total messages: 25 (18 generated)
riajiang
Hi sadrul@, PTAL, thanks!
3 years, 9 months ago (2017-03-03 17:27:02 UTC) #6
sadrul
Add a test?
3 years, 9 months ago (2017-03-03 17:32:00 UTC) #7
riajiang
On 2017/03/03 17:32:00, sadrul wrote: > Add a test? Done. (sry I was thinking to ...
3 years, 9 months ago (2017-03-03 22:14:49 UTC) #12
sadrul
Thanks for the test! lgtm https://codereview.chromium.org/2730903005/diff/40001/ui/aura/mus/window_tree_client_unittest.cc File ui/aura/mus/window_tree_client_unittest.cc (right): https://codereview.chromium.org/2730903005/diff/40001/ui/aura/mus/window_tree_client_unittest.cc#newcode569 ui/aura/mus/window_tree_client_unittest.cc:569: bool was_acked_ = false; ...
3 years, 9 months ago (2017-03-04 02:44:00 UTC) #17
riajiang
https://codereview.chromium.org/2730903005/diff/40001/ui/aura/mus/window_tree_client_unittest.cc File ui/aura/mus/window_tree_client_unittest.cc (right): https://codereview.chromium.org/2730903005/diff/40001/ui/aura/mus/window_tree_client_unittest.cc#newcode569 ui/aura/mus/window_tree_client_unittest.cc:569: bool was_acked_ = false; On 2017/03/04 02:44:00, sadrul wrote: ...
3 years, 9 months ago (2017-03-04 21:34:21 UTC) #19
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/2730903005/80001
3 years, 9 months ago (2017-03-04 21:35:08 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-04 23:08:51 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d8b7d84c49f08b6e50de6da19126...

Powered by Google App Engine
This is Rietveld 408576698