IPC messages may get processed out of order in some cases. Connection::SyncMessageState::dispatchMessages() puts messages it did not process back at the end of the queue, instead of the beginning. This means that messages added to the queue while Connection::SyncMessageState::dispatchMessages() was running will incorrectly run *before* the ones dispatchMessages() did not process.
Created attachment 384864 [details] Patch
Is this related to bug 141122?
(In reply to Alexey Proskuryakov from comment #2) > Is this related to bug 141122? I will check if it helps, I have not checked. I just happened to be looking at this code today for perf reasons and noticed the logic was wrong.
Comment on attachment 384864 [details] Patch Clearing flags on attachment: 384864 Committed r253138: <https://trac.webkit.org/changeset/253138>
All reviewed patches have been landed. Closing bug.
<rdar://problem/57651997>