[Qt] Don't crash on exit when encountering uninitialized WebView.
authorMilian Wolff <milian.wolff@kdab.com>
Mon, 4 Feb 2013 10:58:55 +0000 (11:58 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 15 Feb 2013 18:22:15 +0000 (19:22 +0100)
commit9ca8b2f302d7396b24f448a3ba4e45ef5c6a1018
tree5ca93bccc83e13c9999d9a79e78b69bc72bf45a5
parent7e5ca126b32d9106c737b2cc399b98378619ca63
[Qt] Don't crash on exit when encountering uninitialized WebView.

https://bugs.webkit.org/show_bug.cgi?id=107812

When a WebView is never shown it will not initialize its root layer and
can thus crash on exit when trying to clean up said layers children.

This was fixed properly upstream in commit 18ac4c73a2 but according to
Jocelyn it cannot be cherry-picked easily due to dependencies on other
changes.

Change-Id: I58f5df8d3cd2756ac4f0b0c6a60b19c5c5ef27e8
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp