[Qt] QtTestBrowser: Prevent calling load() directly from loadFinished() in robot...
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>
Tue, 19 Oct 2010 10:34:56 +0000 (10:34 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 27 Oct 2010 21:38:40 +0000 (18:38 -0300)
commit4d3698bc0821c04dbf21d5f144455be6652a3f98
tree1d1986be58831d5e5efd688e5ab884164211d954
parentf169505ba539c1a5b38ee9a451bd1554e61ec8ea
[Qt] QtTestBrowser: Prevent calling load() directly from loadFinished() in robot mode.
https://bugs.webkit.org/show_bug.cgi?id=47809

Reviewed by Andreas Kling.

Connecting a call to load from the loadFinished signal can cause
re-entrance crashes in WebCore. This patch uses a timer to do so,
also giving some time to subsequent frames to finish loading.

* QtTestBrowser/urlloader.cpp:
(UrlLoader::UrlLoader):
(UrlLoader::loadNext):
(UrlLoader::checkIfFinished):
(UrlLoader::frameLoadStarted):
(UrlLoader::frameLoadFinished):
* QtTestBrowser/urlloader.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/QtTestBrowser/urlloader.cpp
WebKitTools/QtTestBrowser/urlloader.h