1. Mus assumes that all windows, including root window are not visible by default:
https://cs.chromium.org/chromium/src/ui/aura/mus/window_tree_host_mus.cc?sq=package:chromium&dr=CSs&rcl=1481055549&l=83
Here it associates the visibility of the root Mus window with the visibility of the compositor (I guess based on the semantics of WTH::Show())
2. WTH::InitHost calls show on its root Window. This presents a problem in the context of Mus: making the WTH's root window visible makes the corresponding Mus window visible, which, considering (1), is wrong, because WTH can be initialized by the client at any time as part of setup - it's not really semantically associated with the visibility of the corresponding Mus window.
The most natural way to fix this would seem to be to call window()->Show() in WTH::Show instead of in WTH::InitHost. If that proves hard because of legacy Aura code, we can instead do it only for WTHMus.
Comment 1 by sky@chromium.org
, Dec 13 2016Owner: sky@chromium.org
Status: Started (was: Assigned)