DescriptionPPAPI: Never re-enter JavaScript for PostMessage.
Blocking renderer->plugin messages can be interrupted by any message
from the plugin->renderer (even async ones). So while handline a blocking
message, such as HandleInputEvent or HandleBlockingMessage, it's currently
possible to re-enter JavaScript. This patch makes that impossible by
queueing up Plugin->Renderer messages sent via PPB_Messaging::PostMessage
while any renderer->plugin sync message is on the stack.
BUG=384528
Committed: https://crrev.com/f73075c99b5ba30e8d62dc5f13fdfb210d0fc506
Cr-Commit-Position: refs/heads/master@{#296311}
Committed: https://crrev.com/3fe4ceee750b2cd130bd402de3d371d8518c3eba
Cr-Commit-Position: refs/heads/master@{#296807}
Committed: https://crrev.com/6b328f3db4b55fa299b6cfac9a30efbc47a2ad26
Cr-Commit-Position: refs/heads/master@{#297308}
Patch Set 1 #Patch Set 2 : cleanup/fixes #
Total comments: 14
Patch Set 3 : Cleanup, review comments #Patch Set 4 : undo small formatting change #Patch Set 5 : Fix crash, address raymes's comments I missed #Patch Set 6 : Make MessageChannel observer clean up more reliably, guarantee HungPluginFilter stays alive long en… #
Messages
Total messages: 24 (6 generated)
|