<rdar://problem/72319199>
Created attachment 417280 [details] Patch
Comment on attachment 417280 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=417280&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:10346 > +bool WebPageProxy::canSendSyncMessage() const Maybe we can update sendSync() in MessageSender.h to null-check messageSenderConnection() instead of asserting it?
(In reply to Chris Dumez from comment #2) > Comment on attachment 417280 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=417280&action=review > > > Source/WebKit/UIProcess/WebPageProxy.cpp:10346 > > +bool WebPageProxy::canSendSyncMessage() const > > Maybe we can update sendSync() in MessageSender.h to null-check > messageSenderConnection() instead of asserting it? Yes, that would work too (I was just under the impression that we wanted to keep the assertion). I'll update the patch to just null check instead.
(In reply to Wenson Hsieh from comment #3) > (In reply to Chris Dumez from comment #2) > > Comment on attachment 417280 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=417280&action=review > > > > > Source/WebKit/UIProcess/WebPageProxy.cpp:10346 > > > +bool WebPageProxy::canSendSyncMessage() const > > > > Maybe we can update sendSync() in MessageSender.h to null-check > > messageSenderConnection() instead of asserting it? > > Yes, that would work too (I was just under the impression that we wanted to > keep the assertion). > > I'll update the patch to just null check instead. I don't think so. I think this crash just proved that this assertion does not hold since in theory you can do a sync IPC while the process is still launching.
Created attachment 417286 [details] Patch
Comment on attachment 417286 [details] Patch r=me, assuming the bots are happy.
Committed r271322: <https://trac.webkit.org/changeset/271322> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417286 [details].