Title: [205704] branches/safari-602-branch/Source/WebKit2
- Revision
- 205704
- Author
- [email protected]
- Date
- 2016-09-09 01:41:37 -0700 (Fri, 09 Sep 2016)
Log Message
Merge r204911. rdar://problem/28175524
Modified Paths
Diff
Modified: branches/safari-602-branch/Source/WebKit2/ChangeLog (205703 => 205704)
--- branches/safari-602-branch/Source/WebKit2/ChangeLog 2016-09-09 08:33:44 UTC (rev 205703)
+++ branches/safari-602-branch/Source/WebKit2/ChangeLog 2016-09-09 08:41:37 UTC (rev 205704)
@@ -1,3 +1,21 @@
+2016-09-09 Babak Shafiei <[email protected]>
+
+ Merge r204911. rdar://problem/28175524
+
+ 2016-08-24 Anders Carlsson <[email protected]>
+
+ In some cases, an IPC::Connection won't know when the other end has gone away
+ https://bugs.webkit.org/show_bug.cgi?id=161153
+ rdar://problem/27896368
+
+ Reviewed by Dan Bernstein.
+
+ When being asked to invalidate a connection that isn't yet connected, make sure to release
+ our send and receive rights so that the other end will get a failure when trying to connect.
+
+ * Platform/IPC/mac/ConnectionMac.mm:
+ (IPC::Connection::platformInvalidate):
+
2016-08-17 Babak Shafiei <[email protected]>
Merge r204587. rdar://problem/27807479
Modified: branches/safari-602-branch/Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm (205703 => 205704)
--- branches/safari-602-branch/Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm 2016-09-09 08:33:44 UTC (rev 205703)
+++ branches/safari-602-branch/Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm 2016-09-09 08:41:37 UTC (rev 205704)
@@ -111,8 +111,19 @@
void Connection::platformInvalidate()
{
- if (!m_isConnected)
+ if (!m_isConnected) {
+ if (m_sendPort) {
+ mach_port_deallocate(mach_task_self(), m_sendPort);
+ m_sendPort = MACH_PORT_NULL;
+ }
+
+ if (m_receivePort) {
+ mach_port_mod_refs(mach_task_self(), m_receivePort, MACH_PORT_RIGHT_RECEIVE, -1);
+ m_receivePort = MACH_PORT_NULL;
+ }
+
return;
+ }
m_isConnected = false;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes