Skip to content

Commit

Permalink
Merge r220793 - [GTK] Crash of WebProcess with on-demand AC
Browse files Browse the repository at this point in the history
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):
  • Loading branch information
magomez authored and carlosgcampos committed Aug 17, 2017
1 parent eb12c6d commit fb5873b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,17 @@
2017-08-16 Miguel Gomez <magomez@igalia.com>

[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):

2017-08-16 Zan Dobersek <zdobersek@igalia.com>

[CoordGraphics] Simplify CoordinatedGraphicsScene state updates
Expand Down
2 changes: 2 additions & 0 deletions Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp
Expand Up @@ -474,6 +474,8 @@ void AcceleratedDrawingArea::attachViewOverlayGraphicsLayer(Frame* frame, Graphi

if (m_layerTreeHost)
m_layerTreeHost->setViewOverlayRootLayer(viewOverlayRootLayer);
else if (m_previousLayerTreeHost)
m_previousLayerTreeHost->setViewOverlayRootLayer(viewOverlayRootLayer);
}

} // namespace WebKit

0 comments on commit fb5873b

Please sign in to comment.