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

Issue 2495533005: Fix bug where removed (but not deleted) windows are not reflected in the tree properly (Closed)

Created:
4 years, 1 month ago by Sarmad Hashmi
Modified:
4 years, 1 month ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bug where removed (but not deleted) windows are not reflected in the tree properly When there are windows which are removed as children of some parent, and they still exist, OnWindowDestroying is not called because the child window was never destroyed. However, OnWindowTreeChanging is called, if the target has an old_parent, aka the parent it is being removed from. OnWindowTreeChanged is called if the target has a new_parent, aka the parent it is being added to. This CL removes nodes on OnWindowTreeChanging and adds them back in OnWindowTreeChanged if necessary. Since we only want them to trigger once, we check to see in either callback if the window that the callback is being called on is the old_parent or the new_parent. BUG=648701 Committed: https://crrev.com/f555669c992a0bf22b8994d6a6f5a3f27e9f32c4 Cr-Commit-Position: refs/heads/master@{#432366}

Patch Set 1 #

Patch Set 2 : Create new child instead of using existing child #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -24 lines) Patch
M ash/common/devtools/ash_devtools_dom_agent.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 3 chunks +30 lines, -21 lines 0 comments Download
M ash/common/devtools/ash_devtools_unittest.cc View 1 2 chunks +30 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (9 generated)
Sarmad Hashmi
PTAL sadrul@, trying to reland https://codereview.chromium.org/2476353002/
4 years, 1 month ago (2016-11-12 09:04:21 UTC) #7
Sarmad Hashmi
oops, forgot to add sadrul
4 years, 1 month ago (2016-11-12 09:06:43 UTC) #9
sadrul
lgtm
4 years, 1 month ago (2016-11-16 00:18:00 UTC) #10
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/2495533005/20001
4 years, 1 month ago (2016-11-16 00:20:02 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-16 02:44:10 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f555669c992a0bf22b8994d6a6f5a3f27e9f32c4 Cr-Commit-Position: refs/heads/master@{#432366}
4 years, 1 month ago (2016-11-16 02:45:59 UTC) #15
Sarmad Hashmi
4 years, 1 month ago (2016-11-16 04:23:58 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2506913002/ by mhashmi@chromium.org.

The reason for reverting is: SystemTrayTest.NullDefaultViewIsNotRecorded failing
(https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/bui...).

Powered by Google App Engine
This is Rietveld 408576698