If an app window calls hide while it is in the background user's desktop, the window will be shown when the user becomes active.
Repro steps:
1. Having two users, A and B, signed into a session;
2. Switch to user A
3. Unzip the attached hide_win.zip and installs it for user A;
4. Launch the app and click on the "Hide this window in 10 seconds" button;
5. Before the count down finishes, switch to user B;
6. Wait for 10 seconds. The count down should hide the window while A is in the background.
7. Switch back to user A
Expected:
The app window should stay hidden.
Actual:
The app window is shown.
Root cause:
MultiUserWindowManagerChromeOS manages window visibility for user. It caches a window's visibility in OnWindowVisibilityChanging and restores it when the user becomes active. However, in this case, when switching away from user A, all user A's windows are hidden. As a result, OnWindowVisibilityChanging is not called thus MultiUserWindowManagerChromeOS does not know the window has changed its visiblity.
We probably need a new solution.
|
Deleted:
hide_win.zip
1.4 KB
|
Comment 1 by skuhne@chromium.org
, Feb 17 2017