[Qt][WK2] UI process segfaults, when visiblity properties are set while the WebProces...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Nov 2011 11:16:40 +0000 (11:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Nov 2011 11:16:40 +0000 (11:16 +0000)
commit2de1c2aac4c51ae01311aebfe91f9ab692e19055
tree5363f4b1a962f35d3f5d8d003aafc3a1d38104f6
parent19df54171a1dc1362e51bbc00605aabd2897c95c
[Qt][WK2] UI process segfaults, when visiblity properties are set while the WebProcess is dead.
https://bugs.webkit.org/show_bug.cgi?id=72699

The drawing area may be null, if the web process has crashed, but not yet recovered.
Always null check against drawing area.

Patch by Zalan Bujtas <zbujtas@gmail.com> on 2011-11-18
Reviewed by Simon Hausmann.

* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::setDrawingAreaSize):
(QtWebPageProxy::setVisibleContentRectAndScale):
(QtWebPageProxy::setVisibleContentRectTrajectoryVector):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp