Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Issue 25736004: Fixes use after free caused by delete in RootWindowController (2) (Closed)

Created:
7 years, 2 months ago by sky
Modified:
7 years, 2 months ago
Reviewers:
oshima
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fixes use after free caused by delete in RootWindowController (2) RootWindowController::CloseChildWindows() was explicitly deleting windows. It should only do that for windows that are owned by the parent, otherwise the window should be removed. BUG=297028 TEST=covered by test now. [email protected] [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226524

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Shutdown #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -5 lines) Patch
M ash/root_window_controller.cc View 3 chunks +12 lines, -3 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 2 chunks +64 lines, -0 lines 0 comments Download
M ash/wm/frame_painter.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/aura/window.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sky
Shutdown
7 years, 2 months ago (2013-10-02 19:15:59 UTC) #1
sky
Patchset 1 is the one you reviewed, 3 the fix. I needed to invoke Shutdown() ...
7 years, 2 months ago (2013-10-02 19:16:53 UTC) #2
sky
Committed patchset #3 manually as r226524 (presubmit successful).
7 years, 2 months ago (2013-10-02 19:25:27 UTC) #3
oshima
7 years, 2 months ago (2013-10-02 20:58:34 UTC) #4
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698