⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 278663 in webkit


Ignore:
Timestamp:
Jun 9, 2021, 9:33:46 AM (5 years ago)
Author:
Peng Liu
Message:

[iOS] UIDelegate::UIClient::fullscreenMayReturnToInline() is not called when a video exits fullscreen
https://bugs.webkit.org/show_bug.cgi?id=226785

Reviewed by Eric Carlson.

On iOS, UIDelegate::UIClient::fullscreenMayReturnToInline() is called when
a video exits picture-in-picture, but not when a video exits fullscreen.
This patch fixes that.

We cannot add a regression test for this patch before fixing webkit.org/b/212654.

  • UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:

(WebKit::VideoFullscreenManagerProxy::exitFullscreen):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r278658 r278663  
     12021-06-09  Peng Liu  <peng.liu6@apple.com>
     2
     3        [iOS] UIDelegate::UIClient::fullscreenMayReturnToInline() is not called when a video exits fullscreen
     4        https://bugs.webkit.org/show_bug.cgi?id=226785
     5
     6        Reviewed by Eric Carlson.
     7
     8        On iOS, `UIDelegate::UIClient::fullscreenMayReturnToInline()` is called when
     9        a video exits picture-in-picture, but not when a video exits fullscreen.
     10        This patch fixes that.
     11
     12        We cannot add a regression test for this patch before fixing webkit.org/b/212654.
     13
     14        * UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:
     15        (WebKit::VideoFullscreenManagerProxy::exitFullscreen):
     16
    1172021-06-09  Diego Pino Garcia  <dpino@igalia.com>
    218
  • trunk/Source/WebKit/UIProcess/Cocoa/VideoFullscreenManagerProxy.mm

    r278253 r278663  
    626626    IntRect finalWindowRect;
    627627    m_page->rootViewToWindow(enclosingIntRect(finalRect), finalWindowRect);
     628#else
     629    if (hasMode(WebCore::HTMLMediaElementEnums::VideoFullscreenModeStandard))
     630        m_page->fullscreenMayReturnToInline();
    628631#endif
    629632
Note: See TracChangeset for help on using the changeset viewer.