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

Issue 2508953002: 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/ba5ad2e37e2277f82d560caf172992d739e1b7c6 Cr-Commit-Position: refs/heads/master@{#432568}

Patch Set 1 #

Patch Set 2 : Add test but disable on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 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 +37 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (11 generated)
Sarmad Hashmi
Trying to reland https://codereview.chromium.org/2476353002/ without the tests
4 years, 1 month ago (2016-11-16 16:07:59 UTC) #4
Sarmad Hashmi
Added tests back in but disabled on windows.
4 years, 1 month ago (2016-11-16 17:43:12 UTC) #9
sadrul
lgtm
4 years, 1 month ago (2016-11-16 18:06:58 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/2508953002/20001
4 years, 1 month ago (2016-11-16 18:26:41 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-16 18:36:56 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 18:52:48 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ba5ad2e37e2277f82d560caf172992d739e1b7c6
Cr-Commit-Position: refs/heads/master@{#432568}

Powered by Google App Engine
This is Rietveld 408576698