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

Changeset 254607 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 11:15:34 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r254287. rdar://problem/58552886

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):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@254287 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-609-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-609-branch/Source/WebKit/ChangeLog

    r254604 r254607  
     12020-01-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r254287. rdar://problem/58552886
     4
     5    Fullscreen videos do not enter PiP in first tap
     6    https://bugs.webkit.org/show_bug.cgi?id=205986
     7   
     8    Reviewed by Eric Carlson.
     9   
     10    This patch essentially reverts the fix for webkit.org/b/204461.
     11    The fix for webkit.org/b/204461 depends on a fix in AVKit along
     12    with a corresponding update in WebKit (webkit.org/b/204979).
     13    We will need to reapply the fix for webkit.org/b/204461 after they are landed.
     14   
     15    * WebProcess/cocoa/VideoFullscreenManager.mm:
     16    (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement):
     17    (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement):
     18   
     19   
     20    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     21
     22    2020-01-09  Peng Liu  <peng.liu6@apple.com>
     23
     24            Fullscreen videos do not enter PiP in first tap
     25            https://bugs.webkit.org/show_bug.cgi?id=205986
     26
     27            Reviewed by Eric Carlson.
     28
     29            This patch essentially reverts the fix for webkit.org/b/204461.
     30            The fix for webkit.org/b/204461 depends on a fix in AVKit along
     31            with a corresponding update in WebKit (webkit.org/b/204979).
     32            We will need to reapply the fix for webkit.org/b/204461 after they are landed.
     33
     34            * WebProcess/cocoa/VideoFullscreenManager.mm:
     35            (WebKit::VideoFullscreenManager::enterVideoFullscreenForVideoElement):
     36            (WebKit::VideoFullscreenManager::exitVideoFullscreenForVideoElement):
     37
    1382020-01-14  Alan Coon  <alancoon@apple.com>
    239
  • branches/safari-609-branch/Source/WebKit/WebProcess/cocoa/VideoFullscreenManager.mm

    r252755 r254607  
    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.