Changeset 202333 in webkit


Ignore:
Timestamp:
Jun 22, 2016 10:16:27 AM (8 years ago)
Author:
jer.noble@apple.com
Message:

Media controls stop working after exiting PiP
https://bugs.webkit.org/show_bug.cgi?id=159026
<rdar://problem/26753579>

Reviewed by Eric Carlson.

Do not slave setting WebVideoFullscreenModelVideoElement::setVideoElement() to
WebPlaybackSessionModelVideoElement::setMediaElement(). After all, someone else
(i.e., the media controls) may still be using it.

  • platform/cocoa/WebVideoFullscreenModelVideoElement.mm:

(WebVideoFullscreenModelVideoElement::setVideoElement): Deleted.

  • platform/ios/WebVideoFullscreenControllerAVKit.mm:

(WebVideoFullscreenControllerContext::didCleanupFullscreen):
(WebVideoFullscreenControllerContext::setUpFullscreen):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202332 r202333  
     12016-06-22  Jer Noble  <jer.noble@apple.com>
     2
     3        Media controls stop working after exiting PiP
     4        https://bugs.webkit.org/show_bug.cgi?id=159026
     5        <rdar://problem/26753579>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Do not slave setting WebVideoFullscreenModelVideoElement::setVideoElement() to
     10        WebPlaybackSessionModelVideoElement::setMediaElement(). After all, someone else
     11        (i.e., the media controls) may still be using it.
     12
     13        * platform/cocoa/WebVideoFullscreenModelVideoElement.mm:
     14        (WebVideoFullscreenModelVideoElement::setVideoElement): Deleted.
     15        * platform/ios/WebVideoFullscreenControllerAVKit.mm:
     16        (WebVideoFullscreenControllerContext::didCleanupFullscreen):
     17        (WebVideoFullscreenControllerContext::setUpFullscreen):
     18
    1192016-06-22  Jer Noble  <jer.noble@apple.com>
    220
  • trunk/Source/WebCore/platform/cocoa/WebVideoFullscreenModelVideoElement.mm

    r201474 r202333  
    8989
    9090    m_videoElement = videoElement;
    91     m_playbackSessionModel->setMediaElement(videoElement);
    9291
    9392    if (!m_videoElement)
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.mm

    r201594 r202333  
    287287        m_model->setWebVideoFullscreenInterface(nullptr);
    288288        m_model->setVideoElement(nullptr);
     289        m_model->playbackSessionModel().setMediaElement(nullptr);
    289290        m_model = nullptr;
    290291        m_videoElement = nullptr;
     
    662663            m_model->setWebVideoFullscreenInterface(this);
    663664            m_model->setVideoElement(m_videoElement.get());
     665            m_model->playbackSessionModel().setMediaElement(m_videoElement.get());
    664666
    665667            IntRect videoElementClientRect = elementRectInWindow(m_videoElement.get());
Note: See TracChangeset for help on using the changeset viewer.