Changeset 209995 in webkit
- Timestamp:
- Dec 19, 2016 1:27:15 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r209975 r209995 1 2016-12-19 Anders Carlsson <andersca@apple.com> 2 3 REGRESSION: Crash in com.apple.WebKit:IPC::Connection::platformCanSendOutgoingMessages() const + 0 4 https://bugs.webkit.org/show_bug.cgi?id=165817 5 rdar://problem/29626731 6 7 Reviewed by Dan Bernstein. 8 9 If the receive right is invalidated before we send the message, the kernel won't be able to create a send right, 10 and we'll crash due to mach_msg returning MACH_SEND_INVALID_RIGHT. 11 12 Fix this by immediately creating a send right, and passing MACH_MSG_TYPE_MOVE_SEND to the attachment constructor. 13 14 * WebProcess/WebPage/WebInspector.cpp: 15 (WebKit::WebInspector::openFrontendConnection): 16 1 17 2016-12-18 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp
r207928 r209995 80 80 mach_port_t listeningPort; 81 81 mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &listeningPort); 82 mach_port_insert_right(mach_task_self(), listeningPort, listeningPort, MACH_MSG_TYPE_MAKE_SEND); 82 83 83 84 IPC::Connection::Identifier connectionIdentifier(listeningPort); 84 IPC::Attachment connectionClientPort(listeningPort, MACH_MSG_TYPE_MAKE_SEND); 85 IPC::Attachment connectionClientPort(listeningPort, MACH_MSG_TYPE_MOVE_SEND); 86 85 87 #else 86 88 notImplemented();
Note: See TracChangeset
for help on using the changeset viewer.