DescriptionFix a race where backgroud page might ack an event before we're ready
to receive the ack on browser/.
We perform a sanity check upon background page ACKing an event,
by checking whether the ACKed message is expected to
be ACKed. We store the pending ACK message IDs into a set
|unacked_messages_|, but due to PostTask call to
IncrementInFlightEventsOnUI, the event ack might arrive earlier
than storing the pending message's ID. This results in incorectly
kill the renderer process.
BUG=485440, 473821
Test=Rise Vision chrome app shouldn't crash anymore.
Committed: https://crrev.com/b2eaaaf0e87f56751783dbc6cab13827375ce847
Cr-Commit-Position: refs/heads/master@{#330301}
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comments #
Total comments: 2
Patch Set 3 : address comments #Messages
Total messages: 18 (5 generated)
|