Chromium Code Reviews
DescriptionFixs bug in notifying clients about hierarchy changes
Here's the specific case, and this only applies to the window manager:
. Client other than WM creates window A.
. Client adds A to the root
At this point the WM knows about A via an OnWindowHierarchyChanged().
. Client removes A.
. Client creates new window B.
The WM doesn't know about B.
. Client adds A to B.
The WM still doesn't know about B, further the WM think's A's parent is null.
. Client adds B to the root.
This triggers an OnWindowHierarchyChanged() for the window manager
with B and a parent of the root. Before the fix
OnWindowHierarchyChanged() didn't contain A, so that the WM thought A
still had no parent and would get confused later on if a
OnWindowHierarchyChanged() was sent for A with a different parent.
The fix is to make the last OnWindowHierarchyChanged() include A in
the data parameter.
This was uncovered in getting views to work with aura-mus. I've
included test coverage of the case.
BUG=660994
TEST=covered by test
R=ben@chromium.org
Committed: https://crrev.com/e093db69fd792577d46415a736fe8245b544940e
Cr-Commit-Position: refs/heads/master@{#430327}
Patch Set 1 #Patch Set 2 : cleanup #
Messages
Total messages: 15 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||