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

Changeset 254287 in webkit


Ignore:
Timestamp:
Jan 9, 2020, 12:08:23 PM (7 years ago)
Author:
Peng Liu
Message:

Fullscreen videos do not enter PiP in first tap
​https://bugs.webkit.org/show_bug.cgi?id=205986

Reviewed by Eric Carlson.

This patch essentially reverts the fix for webkit.org/b/204461.
The fix for webkit.org/b/204461 depends on a fix in AVKit along
with a corresponding update in WebKit (webkit.org/b/204979).
We will need to reapply the fix for webkit.org/b/204461 after they are landed.

  • WebProcess/cocoa/VideoFullscreenManager.mm:

(WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement):
(WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r254286 r254287  
     12020-01-09  Peng Liu  <peng.liu6@apple.com>
     2
     3        Fullscreen videos do not enter PiP in first tap
     4        https://bugs.webkit.org/show_bug.cgi?id=205986
     5
     6        Reviewed by Eric Carlson.
     7
     8        This patch essentially reverts the fix for webkit.org/b/204461.
     9        The fix for webkit.org/b/204461 depends on a fix in AVKit along
     10        with a corresponding update in WebKit (webkit.org/b/204979).
     11        We will need to reapply the fix for webkit.org/b/204461 after they are landed.
     12
     13        * WebProcess/cocoa/VideoFullscreenManager.mm:
     14        (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement):
     15        (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement):
     16
    1172020-01-09  Kate Cheney  <katherine_cheney@apple.com>
    218
  • trunk/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm

    r252755 r254287  
    250250    auto [model, interface] = ensureModelAndInterface(contextId);
    251251    HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface->fullscreenMode();
    252     if (oldMode == mode)
    253         return;
    254252
    255253    addClientForContext(contextId);
    … …  
    300298    uint64_t contextId = m_videoElements.get(&videoElement);
    301299    auto& interface = ensureInterface(contextId);
    302     HTMLMediaElementEnums::VideoFullscreenMode oldMode = interface.fullscreenMode();
    303     if (oldMode == HTMLMediaElementEnums::VideoFullscreenModeNone)
    304         return;
    305 
    306300    interface.setTargetIsFullscreen(false);
    307 
    308301    if (interface.animationState() != VideoFullscreenInterfaceContext::AnimationType::None)
    309302        return;
     303
    310304    interface.setAnimationState(VideoFullscreenInterfaceContext::AnimationType::FromFullscreen);
    311305    m_page->send(Messages::VideoFullscreenManagerProxy::ExitFullscreen(contextId, inlineVideoFrame(videoElement)));
Note: See TracChangeset for help on using the changeset viewer.