Merge "Do not set mAnimatingExit on invisible window" into tm-qpr-dev