[webkit-changes] [WebKit/WebKit] 9fb625: Cherry-pick ba27ab71c4d7. rdar://problem/105992124

Jer Noble noreply at github.com
Tue Feb 28 09:04:25 PST 2023


  Branch: refs/heads/safari-7616.1.4-branch
  Home:   https://github.com/WebKit/WebKit
  Commit: 9fb6250248843e204d4d57c0ee30211ec87a8f8e
      https://github.com/WebKit/WebKit/commit/9fb6250248843e204d4d57c0ee30211ec87a8f8e
  Author: Jer Noble <jer.noble at apple.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M Source/WebCore/platform/cocoa/WebAVPlayerLayer.mm
    M Source/WebCore/platform/cocoa/WebAVPlayerLayerView.mm

  Log Message:
  -----------
  Cherry-pick ba27ab71c4d7. rdar://problem/105992124

    REGRESSION(260575 at main) Tapping PiP Button Crashes UIProcess in -[WebAVPlayerLayer setVideoGravity:]
    https://bugs.webkit.org/show_bug.cgi?id=253034
    rdar://105992124

    Reviewed by Simon Fraser.

    -setVideoGravity is dereferencing _fullscreenInterface unconditionally, and by chance _fullscreenInterface is
    nil when entering PiP mode.

    Call -setFullscreenInterface: earlier in the process of moving video playback to the PiP window, and as a belt-
    and-suspenders technique, also nil check _fullscreennInterface before dereferencing it in WebAVPlayerLayer.

    * Source/WebCore/platform/cocoa/WebAVPlayerLayer.mm:
    (-[WebAVPlayerLayer resolveBounds]):
    (-[WebAVPlayerLayer setVideoGravity:]):
    * Source/WebCore/platform/cocoa/WebAVPlayerLayerView.mm:
    (WebCore::WebAVPlayerLayerView_startRoutingVideoToPictureInPicturePlayerLayerView):

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

Canonical link: https://commits.webkit.org/260848.2@safari-7616.1.4-branch




More information about the webkit-changes mailing list