[webkit-changes] [WebKit/WebKit] e1d19d: [iPad] Videos shift up and down when fullscreen ov...
Jer Noble
noreply at github.com
Wed Jan 17 13:35:26 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e1d19dec257b5a212dfb30849c9260342e34b74d
https://github.com/WebKit/WebKit/commit/e1d19dec257b5a212dfb30849c9260342e34b74d
Author: Jer Noble <jer.noble at apple.com>
Date: 2024-01-17 (Wed, 17 Jan 2024)
Changed paths:
M Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm
Log Message:
-----------
[iPad] Videos shift up and down when fullscreen overlay controls appear/disappear
https://bugs.webkit.org/show_bug.cgi?id=267468
rdar://120848395
Reviewed by Tim Nguyen.
When the system status bar hides during media playback, this updates the UIWindow's safeAreaInsets
property, which propogates into web content by resizing the content area of the WKWebView.
Avoid this resizing by providing a minimum value for the safeAreaInsets.top, via overriding the
WKFullScreenViewController's -additionalSafeAreaInsets method.
* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm:
(-[WKFullScreenViewController additionalSafeAreaInsets]):
Canonical link: https://commits.webkit.org/273140@main
More information about the webkit-changes
mailing list