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

Issue 1982333002: Candidate fix for observe-window-after-free error in WindowTreeClientImpl::LocalSetCapture (Closed)

Created:
4 years, 7 months ago by Mark Dittmer
Modified:
4 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews, rjkroege, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Candidate fix for observe-window-after-free error in WindowTreeClientImpl::LocalSetCapture R=sadrul@chromium.org BUG=612447

Patch Set 1 #

Patch Set 2 : Call client->DestroyWindow from Window dtor rather than from window->Destroy #

Patch Set 3 : Observer-based fix #

Patch Set 4 : rebase #

Patch Set 5 : Fix extra ref to capture_window_ #

Patch Set 6 : Guard observer's AddObserver invocation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -10 lines) Patch
M components/mus/public/cpp/lib/window_tree_client_impl.h View 2 3 chunks +4 lines, -1 line 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 1 2 3 4 5 7 chunks +46 lines, -9 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
Mark Dittmer
4 years, 7 months ago (2016-05-17 14:07:12 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982333002/1
4 years, 7 months ago (2016-05-17 14:07:22 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/138585)
4 years, 7 months ago (2016-05-17 14:16:25 UTC) #5
sadrul
mus::Window::Destroy() calls WindowTreeClientImpl::DestroyWindow(). We should reset |capture_window_| in there. It looks like we do that ...
4 years, 7 months ago (2016-05-17 14:27:31 UTC) #6
Mark Dittmer
Call client->DestroyWindow from Window dtor rather than from window->Destroy
4 years, 7 months ago (2016-05-17 14:52:57 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982333002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982333002/20001
4 years, 7 months ago (2016-05-17 14:53:36 UTC) #9
Mark Dittmer
sadrul@chromium.org: New candidate fails some mash unit tests: https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/188905/steps/mash_unittests%20%28with%20patch%29. Investigating now.
4 years, 7 months ago (2016-05-17 15:16:47 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/188913)
4 years, 7 months ago (2016-05-17 15:26:04 UTC) #12
Mark Dittmer
Observer-based fix
4 years, 7 months ago (2016-05-17 15:45:27 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982333002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982333002/40001
4 years, 7 months ago (2016-05-17 15:46:56 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/138682) linux_chromium_gn_chromeos_rel on ...
4 years, 7 months ago (2016-05-17 15:57:45 UTC) #17
Mark Dittmer
rebase
4 years, 7 months ago (2016-05-17 16:06:57 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982333002/60001
4 years, 7 months ago (2016-05-17 16:07:11 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/161717) linux_chromium_gn_chromeos_rel on ...
4 years, 7 months ago (2016-05-17 16:21:29 UTC) #22
Mark Dittmer
Fix extra ref to capture_window_
4 years, 7 months ago (2016-05-17 17:41:55 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982333002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982333002/80001
4 years, 7 months ago (2016-05-17 17:43:33 UTC) #25
Mark Dittmer
Guard observer's AddObserver invocation
4 years, 7 months ago (2016-05-17 18:36:20 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982333002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982333002/100001
4 years, 7 months ago (2016-05-17 18:36:50 UTC) #28
Mark Dittmer
sadrul@chromium.org: I'm advocating the current fix on the grounds that it works
4 years, 7 months ago (2016-05-17 19:33:42 UTC) #29
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 19:52:32 UTC) #31
Dry run: This issue passed the CQ dry run.

Powered by Google App Engine
This is Rietveld 408576698