Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e1d19dec257b5a212dfb30849c9260342e34b74d
      
https://github.com/WebKit/WebKit/commit/e1d19dec257b5a212dfb30849c9260342e34b74d
  Author: Jer Noble <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to