Changeset 152403 in webkit
- Timestamp:
- Jul 4, 2013 11:42:16 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r152382 r152403 1 2013-07-04 Anders Carlsson <andersca@apple.com> 2 3 Crash when createPluginInternal ends up destroying the plug-in 4 https://bugs.webkit.org/show_bug.cgi?id=118397 5 <rdar://problem/14155051> 6 7 Reviewed by Simon Fraser. 8 9 Keep the WebProcessConnection object alive while calling createPluginInternal and handle 10 the IPC connection going away. 11 12 * PluginProcess/WebProcessConnection.cpp: 13 (WebKit::WebProcessConnection::createPluginAsynchronously): 14 1 15 2013-07-03 Gordon Sheridan <gordon_sheridan@apple.com> 2 16 -
trunk/Source/WebKit2/PluginProcess/WebProcessConnection.cpp
r151480 r152403 290 290 // We can force it to do so by incrementing the "DispatchMessageMarkedDispatchWhenWaitingForSyncReply" count. 291 291 m_connection->incrementDispatchMessageMarkedDispatchWhenWaitingForSyncReplyCount(); 292 293 // The call to createPluginInternal can potentially cause the plug-in to be destroyed and 294 // thus free the WebProcessConnection object. Protect it. 295 RefPtr<WebProcessConnection> protect(this); 292 296 createPluginInternal(creationParameters, result, wantsWheelEvents, remoteLayerClientID); 297 298 if (!m_connection) { 299 // createPluginInternal caused the connection to go away. 300 return; 301 } 302 293 303 m_connection->decrementDispatchMessageMarkedDispatchWhenWaitingForSyncReplyCount(); 294 304
Note: See TracChangeset
for help on using the changeset viewer.