<rdar://problem/30323148> Webkit Nightly on 10.10 broken
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Feb 2017 17:39:57 +0000 (17:39 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Feb 2017 17:39:57 +0000 (17:39 +0000)
Try to fix the 10.10 build.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211566 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm

index 281e931..74c6dab 100644 (file)
@@ -1,3 +1,12 @@
+2017-02-02  Anders Carlsson  <andersca@apple.com>
+
+        <rdar://problem/30323148> Webkit Nightly on 10.10 broken
+
+        Try to fix the 10.10 build.
+
+        * Platform/IPC/mac/ConnectionMac.mm:
+        (IPC::Connection::open):
+
 2017-02-01  Anders Carlsson  <andersca@apple.com>
 
         Handle m_processLauncher being null in ChildProcessProxy::processIdentifier()
index 9e14355..e390c94 100644 (file)
@@ -227,10 +227,10 @@ bool Connection::open()
 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000
     if (m_exceptionPort) {
         m_exceptionPortDataAvailableSource = dispatch_source_create(DISPATCH_SOURCE_TYPE_MACH_RECV, m_exceptionPort, 0, m_connectionQueue.dispatchQueue());
-        dispatch_source_set_event_handler(source, [connection] {
+        dispatch_source_set_event_handler(m_exceptionPortDataAvailableSource, [connection] {
             connection->exceptionSourceEventHandler();
         });
-        dispatch_source_set_cancel_handler(source, [connection, exceptionPort = connection->m_exceptionPort] {
+        dispatch_source_set_cancel_handler(m_exceptionPortDataAvailableSource, [connection, exceptionPort = connection->m_exceptionPort] {
             mach_port_mod_refs(mach_task_self(), exceptionPort, MACH_PORT_RIGHT_RECEIVE, -1);
         });