Mac: Fix execution of performClose: signal (issue #1203)
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1631 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
2e7e342f87
commit
8bf0d143b8
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue