New issue
Advanced search Search tips

Issue 894547 link

Starred by 7 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug-Regression


Participants' hotlists:
Launcher-Polish


Sign in to add a comment

Chrome windows are resized after reboot

Reported by tri...@gmail.com, Oct 11

Issue description

Chrome Version : 71.0.3572.0
OS Version: 11143.0.0

What steps will reproduce the problem?
1. Use the task bar on either the right or left side of the screen (not bottom)
2. Have a Chrome window that takes up the whole screen (top to bottom)
3. Reboot

What is the expected result?
The Chrome window will be the same size.


What happens instead of that?
The window is resized with the bottom edge moved up to (apparently) make room for a task bar that is not there (I have it on the right / left of my dual monitor display).

UserAgentString: Mozilla/5.0 (X11; CrOS x86_64 11143.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3572.0 Safari/537.36



 
Before reboot...
Screenshot 2018-10-11 at 1.34.10 PM.png
1.7 MB View Download
After reboot...
Screenshot 2018-10-11 at 1.34.00 PM.png
2.0 MB View Download
Components: UI>Shell>WindowManager
Cc: weidongg@chromium.org newcomer@chromium.org manucornet@chromium.org
Components: -UI>Shell>WindowManager UI>Shell>Shelf
My guess is the shelf layout manager changes the display's work area bounds and apparently it does this at the login screen where the shelf is always placed at the bottom.
#4: Shouldn't that action be performed after the user preference for shelf position(s) is loaded? 

Also, I wrongly limited this to Chrome windows -- it will actually happen to any window open from the previous session.
Yes, it should affect all windows. I'm not very familiar with the Shelf, and I will leave that to the owners of it to investigate.
I have this issue too.  Also, windows that were maximized often (always?) come back un-maximized on reboot.  Surely Chrome can remember the position and size of windows across reboots?
Components: UI>Shell>WindowManager
Owner: osh...@chromium.org
oshima,

Is this a regression? I don't know if WM ever remembered the window positions between reboots.

Owner: alemate@chromium.org
Status: Assigned (was: Unconfirmed)
It does remember the postion, size and maximized window state (fullscreen is restored as maximzied iirc), if you choose "Continue where you left off" in "On startup" settings.

I believe it's using auto hide, and autohide settings is restored after windows are restored.

alemate@, do you know where the shelf state is restored from sync?
Confirming this behavior on Caroline Beta 70.

Window not maximized

Shelf position at the bottom and autohide 
setting: continue where you left off

Reboot > window is as in screenshot with shelf hidden 

Rebooting with a maximized window is OK > but when click to un-maximize > same behavior
Screenshot 2018-10-25 at 8.18.21 AM.png
347 KB View Download
Screenshot 2018-10-25 at 8.21.14 AM.png
958 KB View Download
Labels: Hotlist-ConOps-CrOS
See previously  issue 622431  and  issue 681883 .

Given the number of times this (or a similar) bug has recurred, why wasn't it caught by a regression test?
Labels: -Type-Bug Type-Bug-Regression
Cc: alemate@chromium.org jdufault@chromium.org
Owner: osh...@chromium.org
Re #9:
> do you know where the shelf state is restored from sync?

Could it be here: https://cs.chromium.org/chromium/src/ash/shelf/shelf_controller.cc?l=332
?

It will automatically trigger SetShelfAutoHideFromPrefs() on change.

Sign in to add a comment