Changeset 182052 in webkit


Ignore:
Timestamp:
Mar 26, 2015, 11:36:48 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Optimized Fullscreen fails to cleanup because of no longer necessary release of m_playerController in exitFullscreen()
https://bugs.webkit.org/show_bug.cgi?id=143120

Patch by Jeremy Jones <jeremyj@apple.com> on 2015-03-26
Reviewed by Eric Carlson.

We used to release m_playerController in WebVideoFullscreenInterfaceAVKit::exitFullscreen() in order to make sure
media state was reset. This is no longer necessary as we now have a way the model can explicitly request resetting the
media state via resetMediaState(). m_playerController is already released in
WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal(). Releasing it prematurely can actually prevent the exit
fullscreen process from completing successfully.

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(WebVideoFullscreenInterfaceAVKit::exitFullscreen):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182051 r182052  
     12015-03-26  Jeremy Jones  <jeremyj@apple.com>
     2
     3        Optimized Fullscreen fails to cleanup because of no longer necessary release of m_playerController in exitFullscreen()
     4        https://bugs.webkit.org/show_bug.cgi?id=143120
     5
     6        Reviewed by Eric Carlson.
     7
     8        We used to release m_playerController in WebVideoFullscreenInterfaceAVKit::exitFullscreen() in order to make sure
     9        media state was reset. This is no longer necessary as we now have a way the model can explicitly request resetting the
     10        media state via resetMediaState(). m_playerController is already released in
     11        WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal(). Releasing it prematurely can actually prevent the exit
     12        fullscreen process from completing successfully.
     13
     14        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     15        (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
     16
    1172015-03-26  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r181713 r182052  
    10251025    }
    10261026
    1027     m_playerController = nil;
    1028 
    10291027    dispatch_async(dispatch_get_main_queue(), [strongThis, finalRect] {
    10301028        strongThis->exitFullscreenInternal(finalRect);
Note: See TracChangeset for help on using the changeset viewer.