Changeset 136872 in webkit
- Timestamp:
- Dec 6, 2012, 12:24:29 PM (14 years ago)
- Location:
- branches/safari-536.28-branch/Source/WebKit2
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
Platform/CoreIPC/Connection.cpp (modified) (2 diffs)
-
Platform/CoreIPC/Connection.h (modified) (2 diffs)
-
UIProcess/API/C/WKPagePrivate.h (modified) (1 diff)
-
UIProcess/WebProcessProxy.cpp (modified) (2 diffs)
-
UIProcess/WebProcessProxy.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-536.28-branch/Source/WebKit2/ChangeLog
r136048 r136872 1 2012-12-06 Anders Carlsson <andersca@apple.com> 2 3 <rdar://problem/12828185> "Invalid message" crash reporter data should also include last sent sync message 4 5 Reviewed by Dan Bernstein. 6 7 Add a way to get the last sent sync message and pass it along to the invalid message callback. 8 9 * Platform/CoreIPC/Connection.cpp: 10 (CoreIPC::Connection::Connection): 11 (CoreIPC::Connection::sendSyncMessage): 12 * Platform/CoreIPC/Connection.h: 13 (CoreIPC::Connection::lastSentSyncMessageID): 14 (Connection): 15 * UIProcess/API/C/WKPagePrivate.h: 16 * UIProcess/WebProcessProxy.cpp: 17 (WebKit): 18 (WebKit::WebProcessProxy::didReceiveInvalidMessage): 19 (WebKit::WebProcessProxy::setInvalidMessageCallback): 20 * UIProcess/WebProcessProxy.h: 21 (WebProcessProxy): 22 1 23 2012-11-28 Lucas Forschler <lforschler@apple.com> 2 24 -
branches/safari-536.28-branch/Source/WebKit2/Platform/CoreIPC/Connection.cpp
r134884 r136872 196 196 , m_isServer(isServer) 197 197 , m_syncRequestID(0) 198 , m_lastSentSyncMessageID(0) 198 199 , m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage(false) 199 200 , m_shouldExitOnSyncMessageSendFailure(false) … … 386 387 return nullptr; 387 388 } 389 390 m_lastSentSyncMessageID = messageID.toInt(); 388 391 389 392 // Push the pending sync reply information on our stack. -
branches/safari-536.28-branch/Source/WebKit2/Platform/CoreIPC/Connection.h
r134884 r136872 170 170 void decrementDispatchMessageMarkedDispatchWhenWaitingForSyncReplyCount() { --m_inDispatchMessageMarkedDispatchWhenWaitingForSyncReplyCount; } 171 171 172 unsigned lastSentSyncMessageID() const { return m_lastSentSyncMessageID; } 173 172 174 private: 173 175 template<typename T> class Message { … … 250 252 bool m_isServer; 251 253 uint64_t m_syncRequestID; 254 unsigned m_lastSentSyncMessageID; 252 255 253 256 bool m_onlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage; -
branches/safari-536.28-branch/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h
r135907 r136872 93 93 WK_EXPORT void WKPageSetMediaVolume(WKPageRef page, float volume); 94 94 95 typedef void (*WKPageInvalidMessageFunction)(uint32_t messageID );95 typedef void (*WKPageInvalidMessageFunction)(uint32_t messageID, uint32_t lastSentSyncMessageID); 96 96 WK_EXPORT void WKPageSetInvalidMessageFunction(WKPageInvalidMessageFunction function); 97 97 -
branches/safari-536.28-branch/Source/WebKit2/UIProcess/WebProcessProxy.cpp
r135907 r136872 375 375 } 376 376 377 void (*s_invalidMessageCallback)(uint32_t messageID );378 379 void WebProcessProxy::didReceiveInvalidMessage(CoreIPC::Connection* , CoreIPC::MessageID messageID)377 void (*s_invalidMessageCallback)(uint32_t messageID, uint32_t lastSentSyncMessageID); 378 379 void WebProcessProxy::didReceiveInvalidMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID) 380 380 { 381 381 WTFLogAlways("Received an invalid message from the web process with message ID %x\n", messageID.toInt()); 382 382 383 383 if (s_invalidMessageCallback) 384 s_invalidMessageCallback(messageID.toInt() );384 s_invalidMessageCallback(messageID.toInt(), connection->lastSentSyncMessageID()); 385 385 386 386 // Terminate the WebProcesses. … … 508 508 } 509 509 510 void WebProcessProxy::setInvalidMessageCallback(void (*invalidMessageCallback)(uint32_t ))510 void WebProcessProxy::setInvalidMessageCallback(void (*invalidMessageCallback)(uint32_t, uint32_t)) 511 511 { 512 512 s_invalidMessageCallback = invalidMessageCallback; -
branches/safari-536.28-branch/Source/WebKit2/UIProcess/WebProcessProxy.h
r135907 r136872 117 117 template<typename E, typename T> bool deprecatedSend(E messageID, uint64_t destinationID, const T& arguments); 118 118 119 static void setInvalidMessageCallback(void (*)(uint32_t ));119 static void setInvalidMessageCallback(void (*)(uint32_t, uint32_t)); 120 120 121 121 private:
Note:
See TracChangeset
for help on using the changeset viewer.