[webkit-changes] [WebKit/WebKit] 1626a4: Clamp fullscreen window size based on video dimens...

Dean Jackson noreply at github.com
Fri Oct 21 16:15:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1626a43b85c9e19cb35cab1d7f752749a31fd55f
      https://github.com/WebKit/WebKit/commit/1626a43b85c9e19cb35cab1d7f752749a31fd55f
  Author: Dean Jackson <dino at apple.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm

  Log Message:
  -----------
  Clamp fullscreen window size based on video dimensions
https://bugs.webkit.org/show_bug.cgi?id=246883
<rdar://problem/101439923>

Reviewed by Aditya Keerthi.

We have a preferred size for fullscreen windows, and then we try to fit video
into that size. But if the video is an unusual aspect ratio, we can
accidentally create windows that escape the bounds.

* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController enterFullScreen:]): Clamp the window size to
the preferred dimensions.

Canonical link: https://commits.webkit.org/255857@main




More information about the webkit-changes mailing list