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

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

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

Description

Revert of Fix bug where removed (but not deleted) windows are not reflected in the tree properly (patchset #7 id:120001 of https://codereview.chromium.org/2476353002/ ) Reason for revert: Suspected to cause SystemTrayTest.NullDefaultViewIsNotRecorded failure. BUG=664428 Original issue's 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/dbef379ab2b2c8a2127d20839f77d355e9f5742e > Cr-Commit-Position: refs/heads/master@{#431482} TBR=sadrul@chromium.org,mhashmi@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=648701 Committed: https://crrev.com/fb027e734b0b86cbe440c70d6a62f63fa5c4b7b9 Cr-Commit-Position: refs/heads/master@{#431541}

Patch Set 1 #

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

Messages

Total messages: 9 (3 generated)
hiroshige
Created Revert of Fix bug where removed (but not deleted) windows are not reflected in ...
4 years, 1 month ago (2016-11-11 11:44:19 UTC) #2
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/2498593002/1
4 years, 1 month ago (2016-11-11 11:44:34 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 11:45:22 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/fb027e734b0b86cbe440c70d6a62f63fa5c4b7b9 Cr-Commit-Position: refs/heads/master@{#431541}
4 years, 1 month ago (2016-11-11 11:48:00 UTC) #7
sadrul
On 2016/11/11 11:48:00, commit-bot: I haz the power wrote: > Patchset 1 (id:??) landed as ...
4 years, 1 month ago (2016-11-11 13:44:45 UTC) #8
hiroshige
4 years, 1 month ago (2016-11-12 05:06:56 UTC) #9
Message was sent while issue was closed.
On 2016/11/11 13:44:45, sadrul wrote:
> On 2016/11/11 11:48:00, commit-bot: I haz the power wrote:
> > Patchset 1 (id:??) landed as
> > https://crrev.com/fb027e734b0b86cbe440c70d6a62f63fa5c4b7b9
> > Cr-Commit-Position: refs/heads/master@{#431541}
> 
> Did the revert fix the failure? (This cl should not affect those tests)

Yes, this revert looks to fix the failure.

Before revert:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/bui...

After revert:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/bui...
No failure after this.

Powered by Google App Engine
This is Rietveld 408576698