Changeset 183774 in webkit


Ignore:
Timestamp:
May 4, 2015 3:14:33 PM (9 years ago)
Author:
jer.noble@apple.com
Message:

[iOS] Crash in -[WebCALayerHostWrapper resolveBounds]
https://bugs.webkit.org/show_bug.cgi?id=144595

Reviewed by Eric Carlson.

It is possible for a WebCALayorHostWrapper to outlive the WebVideoFullscreenModel to which it refers,
since the model pointer is bare, rather than a RefPtr. The reference to the model must be invalidated
before the model is destroyed.

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r183770 r183774  
     12015-05-04  Jer Noble  <jer.noble@apple.com>
     2
     3        [iOS] Crash in -[WebCALayerHostWrapper resolveBounds]
     4        https://bugs.webkit.org/show_bug.cgi?id=144595
     5
     6        Reviewed by Eric Carlson.
     7
     8        It is possible for a WebCALayorHostWrapper to outlive the WebVideoFullscreenModel to which it refers,
     9        since the model pointer is bare, rather than a RefPtr. The reference to the model must be invalidated
     10        before the model is destroyed.
     11
     12        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     13        (WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal):
     14
    1152015-05-04  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r183690 r183774  
    11601160    [[m_viewController view] removeFromSuperview];
    11611161
     1162    [m_layerHostWrapper setModel:nullptr];
     1163
    11621164    m_layerHostWrapper = nil;
    11631165    m_videoLayer = nil;
Note: See TracChangeset for help on using the changeset viewer.