Calling xpc_connection_send_message in the block in WebKit::LaunchServicesDatabaseObserver::LaunchServicesDatabaseObserver will sometimes crash because the XPC connection object is invalid.
rdar://problem/65879665
Created attachment 405084 [details] Patch
Comment on attachment 405084 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405084&action=review > Source/WebKit/NetworkProcess/cocoa/LaunchServicesDatabaseObserver.h:59 > + Lock m_lock; I think I would call this m_connectionsLock for clarity.
(In reply to Chris Dumez from comment #3) > Comment on attachment 405084 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=405084&action=review > > > Source/WebKit/NetworkProcess/cocoa/LaunchServicesDatabaseObserver.h:59 > > + Lock m_lock; > > I think I would call this m_connectionsLock for clarity. Will do. Thanks for reviewing!
Created attachment 405090 [details] Patch
Committed r264806: <https://trac.webkit.org/changeset/264806> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405090 [details].