Mac: Fix execution of performClose: signal (issue #1203)

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1630 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-03-06 13:42:14 +00:00
parent 5b6086ffb3
commit d9310e2c58
1 changed files with 4 additions and 3 deletions

View File

@ -389,9 +389,10 @@ bool CefBrowserHostImpl::PlatformCreateWindow() {
void CefBrowserHostImpl::PlatformCloseWindow() {
if (window_info_.view != nil) {
[[window_info_.view window] performSelector:@selector(performClose:)
withObject:nil
afterDelay:0];
[[window_info_.view window]
performSelectorOnMainThread:@selector(performClose:)
withObject:nil
waitUntilDone:NO];
}
}