According to crash logs, it seems possible that the parent process XPC connection can be null. Add a null check, and also check that the connection XPC object really is an XPC connection object.
rdar://problem/65717136
Created attachment 404579 [details] Patch
Comment on attachment 404579 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404579&action=review > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:177 > + if (xpc_get_type(connection) != XPC_TYPE_CONNECTION) I think this should be an assertion.
Created attachment 404580 [details] Patch
(In reply to Chris Dumez from comment #3) > Comment on attachment 404579 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=404579&action=review > > > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:177 > > + if (xpc_get_type(connection) != XPC_TYPE_CONNECTION) > > I think this should be an assertion. Fixed. Thanks for reviewing!
Comment on attachment 404580 [details] Patch r=me
Committed r264529: <https://trac.webkit.org/changeset/264529> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404580 [details].