Don't null out the IPC::Connection's XPC connection
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jul 2016 00:38:23 +0000 (00:38 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Jul 2016 00:38:23 +0000 (00:38 +0000)
commit58d77b3a8f1945291c4c1de347300fc455bc48d5
tree84cd396c95150d584e9b72ab99a2bcbd362c6fb5
parentfd66544b9ba97ef6818decf303c0445db4f22338
Don't null out the IPC::Connection's XPC connection
https://bugs.webkit.org/show_bug.cgi?id=159911
rdar://problem/27018065

Reviewed by Alex Christensen.

The function that nulls out the XPC connection, platformInvalidate(), is called from the connection queue,
whereas the XPC connection is normally accessed from the main thread leading to inconsistencies when the
connection is being invalidated while the main thread is trying to access it.

Fix this by simply never nulling out the XPC connection. It will be released when the IPC::Connection is destroyed anyway.

* Platform/IPC/mac/ConnectionMac.mm:
(IPC::Connection::platformInvalidate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm