Chromium Code Reviews
DescriptionFix incorrect window size on session restore.
Under the right conditions, a window that is restored during a browser
restart and never moved during that session will have an empty bounds
in session restore during the next browser restart. As a result that
window will be assigned the default browser window bounds, which could
be much different (in the steps in the referenced bug the restored
window jumps from its original size to the full size of the screen).
Normally whenever a window's size is changed, even during window
restoration, its size is sent to session restore, but at start-up the
window may not be fully initialized with the session service and so
session restore ignores the update. The solution is to ensure that
the window always updates its size with session restore when it
becomes main (it was almost always doing that previously; the case
where it wasn't is what led to the bug).
BUG=536280
Committed: https://crrev.com/61d7597133612988ae9980482da6199c7ad23e8a
Cr-Commit-Position: refs/heads/master@{#355803}
Patch Set 1 #
Messages
Total messages: 13 (4 generated)
|
|||||||||||||||||||