Make all sync IPCs during ScriptDisallowedScope set DoNotProcessIncomingMessagesWhenW...
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2018 23:53:30 +0000 (23:53 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2018 23:53:30 +0000 (23:53 +0000)
commit168073cb80b70408d44f1e2e9ea579cd70359378
tree3946545f313416f443c33ba37d0c3e27d0d6d631
parent850a7d3a0d603ba1c337490bf978f7d8c16328f4
Make all sync IPCs during ScriptDisallowedScope set DoNotProcessIncomingMessagesWhenWaitingForSyncReply
https://bugs.webkit.org/show_bug.cgi?id=182449
<rdar://problem/39222541>

Reviewed by Chris Dumez.

Release assert that a sync IPC inside ScriptDisallowedScope sets DoNotProcessIncomingMessagesWhenWaitingForSyncReply
to avoid executing arbitrary scripts as a result of processing incoming sync IPCs.

* Platform/IPC/Connection.h:
(IPC::Connection::sendSync): Added the release assertion.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/Platform/IPC/Connection.h