Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 8a09872. rdar://120492434
[iOS] youtube.com: Exiting fullscreen causes page to scroll down slightly, cropping top of video https://bugs.webkit.org/show_bug.cgi?id=269120 rdar://120492434 Reviewed by Aditya Keerthi. In 271567@main, we added a call to `scrollIntoView()` to ensure the element which was exiting fullscreen was visible in the viewport, no matter how much layout shifted the element during the fullscreen transition. However, this has the side effect of "pinning" the fullscreen element to the top of the page, which for the case of YouTube, is under the YouTube header bar. Instead, call `scrollIntoViewIfNotVisible()` (passing in `true` to center the element if offscreen) which is a no-op if the element is already visible. * Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp: (WebKit::WebFullScreenManager::didExitFullScreen): Canonical link: https://commits.webkit.org/274460@main Identifier: 272448.607@safari-7618-branch
- Loading branch information