Changeset 180186 in webkit


Ignore:
Timestamp:
Feb 16, 2015, 4:17:29 PM (10 years ago)
Author:
bshafiei@apple.com
Message:

Merged r177625. rdar://problem/19851970

Location:
branches/safari-600.1.4.15-branch/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-600.1.4.15-branch/Source/WebKit2/ChangeLog

    r180045 r180186  
     12015-02-16  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r177625.
     4
     5    2014-12-21  Eric Carlson  <eric.carlson@apple.com>
     6
     7            [iOS] avoid WebVideoFullscreenManager crash
     8            https://bugs.webkit.org/show_bug.cgi?id=139852
     9            <rdar://problem/19319302>
     10
     11            Reviewed by Darin Adler.
     12
     13            * WebProcess/ios/WebVideoFullscreenManager.mm:
     14            (WebKit::WebVideoFullscreenManager::didExitFullscreen): NULL-check m_layerHostingContext and m_page.
     15            (WebKit::WebVideoFullscreenManager::setVideoLayerFrameFenced): NULL-check m_layerHostingContext.
     16
    1172015-02-13  Matthew Hanson  <matthew_hanson@apple.com>
    218
  • branches/safari-600.1.4.15-branch/Source/WebKit2/WebProcess/ios/WebVideoFullscreenManager.mm

    r178994 r180186  
    216216
    217217    dispatch_async(dispatch_get_main_queue(), ^{
    218         m_layerHostingContext->setRootLayer(nullptr);
    219         m_layerHostingContext = nullptr;
    220         m_page->send(Messages::WebVideoFullscreenManagerProxy::CleanupFullscreen(), m_page->pageID());
     218        if (m_layerHostingContext) {
     219            m_layerHostingContext->setRootLayer(nullptr);
     220            m_layerHostingContext = nullptr;
     221        }
     222        if (m_page)
     223            m_page->send(Messages::WebVideoFullscreenManagerProxy::CleanupFullscreen(), m_page->pageID());
    221224        protect.clear();
    222225    });
     
    248251void WebVideoFullscreenManager::setVideoLayerFrameFenced(WebCore::FloatRect bounds, IPC::Attachment fencePort)
    249252{
    250     m_layerHostingContext->setFencePort(fencePort.port());
     253    if (m_layerHostingContext)
     254        m_layerHostingContext->setFencePort(fencePort.port());
    251255    setVideoLayerFrame(bounds);
    252256    mach_port_deallocate(mach_task_self(), fencePort.port());
Note: See TracChangeset for help on using the changeset viewer.