From 8bf0d143b871d08d8bc9c38a37d409db1b662012 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 6 Mar 2014 13:42:45 +0000 Subject: [PATCH] Mac: Fix execution of performClose: signal (issue #1203) git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1631 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser/browser_host_impl_mac.mm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libcef/browser/browser_host_impl_mac.mm b/libcef/browser/browser_host_impl_mac.mm index ea93838f1..1be22e515 100644 --- a/libcef/browser/browser_host_impl_mac.mm +++ b/libcef/browser/browser_host_impl_mac.mm @@ -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]; } }