Fix GTK+ WTR crashes in initializeMainRunLoop()
Rubber-stamped by Žan Doberšek.
Initialize threading and main thread before
RunLoop::initializeMainRunLoop(), since the GLib implementation of
the RunLoop uses isMainThread() to decide whether to create a new
GMainContext or use the default one. Also use RunLoop::run() and
::stop() instead of gtk_main/quit.
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::initialize):
* WebKitTestRunner/gtk/TestControllerGtk.cpp:
(WTR::TestController::notifyDone):
(WTR::TestController::platformRunUntil):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@189017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed