Changeset 220793 in webkit


Ignore:
Timestamp:
Aug 16, 2017 4:26:39 AM (7 years ago)
Author:
magomez@igalia.com
Message:

[GTK] Crash of WebProcess with on-demand AC
https://bugs.webkit.org/show_bug.cgi?id=171161

Reviewed by Carlos Garcia Campos.

Set the viewOverlayRootLayer to the previous layerTreeHost if it exists. This avoids a
crash when reusing the previous layerTreeHost, because it would keep a reference to an
already destroyed viewOverlayRootLayer.

  • WebProcess/WebPage/AcceleratedDrawingArea.cpp:

(WebKit::AcceleratedDrawingArea::attachViewOverlayGraphicsLayer):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r220792 r220793  
     12017-08-16  Miguel Gomez  <magomez@igalia.com>
     2
     3        [GTK] Crash of WebProcess with on-demand AC
     4        https://bugs.webkit.org/show_bug.cgi?id=171161
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Set the viewOverlayRootLayer to the previous layerTreeHost if it exists. This avoids a
     9        crash when reusing the previous layerTreeHost, because it would keep a reference to an
     10        already destroyed viewOverlayRootLayer.
     11
     12        * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
     13        (WebKit::AcceleratedDrawingArea::attachViewOverlayGraphicsLayer):
     14
    1152017-08-16  Zan Dobersek  <zdobersek@igalia.com>
    216
  • trunk/Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp

    r218985 r220793  
    475475    if (m_layerTreeHost)
    476476        m_layerTreeHost->setViewOverlayRootLayer(viewOverlayRootLayer);
     477    else if (m_previousLayerTreeHost)
     478        m_previousLayerTreeHost->setViewOverlayRootLayer(viewOverlayRootLayer);
    477479}
    478480
Note: See TracChangeset for help on using the changeset viewer.