Fix the instance state issue when system startup.
When system startup, windows restored can’t get the visible and activated status from OnWindowVisibilityChanged and OnWindowActivated. Also web apps are ready at the very late phase which delays the shelf id setting for windows. So check the top window's visible and activated status when we have the shelf id. Fix the instance state issue when drag the browser tabs. The top window could be changed when drag a tab to switch between browsers, so update the relation for tab windows and browser windows. Bug: 1085284 Change-Id: I47ccf5e8c14d8ce6632bf469903709ddbadfbf8c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2190075 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#772553}
Showing
Please register or sign in to comment