mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Change the way that application shutdown works in order to support JavaScript 'onbeforeunload' handling (issue #853). See comments in cef_life_span_handler.h for a detailed description of the new shutdown process.
- Fix a crash on Linux during window destruction (issue #681). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1149 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "include/cef_app.h"
|
||||
#include "include/cef_task.h"
|
||||
#include "tests/cefclient/client_app.h"
|
||||
#include "tests/unittests/test_handler.h"
|
||||
#include "tests/unittests/test_suite.h"
|
||||
#include "base/bind.h"
|
||||
#include "base/command_line.h"
|
||||
@@ -27,6 +28,10 @@ class CefTestThread : public base::Thread {
|
||||
// Run the test suite.
|
||||
retval_ = test_suite_->Run();
|
||||
|
||||
// Wait for all browsers to exit.
|
||||
while (TestHandler::HasBrowser())
|
||||
base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
|
||||
|
||||
// Quit the CEF message loop.
|
||||
CefPostTask(TID_UI, NewCefRunnableFunction(CefQuitMessageLoop));
|
||||
}
|
||||
|
Reference in New Issue
Block a user