Chromium Code Reviews
DescriptionWait until after layout when restoring scroll on exiting fullscreen.
Many pages can change while in fullscreen. For example, youtube applies
display:none to elements not in the fullscreen ancestor chain using CSS
selectors. This means that until we update style and layout, the page will not
be scrollable to the same extent (or at all) as it was when we entered
fullscreen.
The solution is to take note when we exit fullscreen and try to restore the
scale and scroll once the first layout after exiting fullscreen is completed.
This ensures the page is completely back to it's pre-fullscreen state.
BUG=625683
Committed: https://crrev.com/d3fb3a358ce9c85bfd7bcda882a23179ac064775
Cr-Commit-Position: refs/heads/master@{#405854}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Fixed race issue #Patch Set 4 : Rebase #Patch Set 5 : Rebase #Patch Set 6 : Rebase #Patch Set 7 : Fix tests after foolip@'s patch #
Messages
Total messages: 27 (13 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||