Changeset 235087 in webkit


Ignore:
Timestamp:
Aug 20, 2018 11:38:05 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

UIWebView crashes while attempting to play youtube video on phone
https://bugs.webkit.org/show_bug.cgi?id=188351
rdar://problem/42489664

Patch by Jeremy Jones <jeremyj@apple.com> on 2018-08-20
Reviewed by David Kilzer.

Test will be incorporated with fix for 188749, which will test both fixes.

VideoFullscreenControllerContext must remove unretained reference to it from m_playbackModel during cleanup.

  • platform/ios/WebVideoFullscreenControllerAVKit.mm:

(VideoFullscreenControllerContext::didCleanupFullscreen):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235086 r235087  
     12018-08-20  Jeremy Jones  <jeremyj@apple.com>
     2
     3        UIWebView crashes while attempting to play youtube video on phone
     4        https://bugs.webkit.org/show_bug.cgi?id=188351
     5        rdar://problem/42489664
     6
     7        Reviewed by David Kilzer.
     8
     9        Test will be incorporated with fix for 188749, which will test both fixes.
     10
     11        VideoFullscreenControllerContext must remove unretained reference to it from m_playbackModel during cleanup.
     12
     13        * platform/ios/WebVideoFullscreenControllerAVKit.mm:
     14        (VideoFullscreenControllerContext::didCleanupFullscreen):
     15
    1162018-08-20  Eric Carlson  <eric.carlson@apple.com>
    217
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.mm

    r233926 r235087  
    329329        m_fullscreenModel->setVideoElement(nullptr);
    330330        m_playbackModel->setMediaElement(nullptr);
     331        m_playbackModel->removeClient(*this);
    331332        m_fullscreenModel->removeClient(*this);
    332333        m_fullscreenModel = nullptr;
Note: See TracChangeset for help on using the changeset viewer.