Fix bug where timeout was being erroneously cleared too early.
The timeout was being cleared when the PostMessageAPIServer was receiving various messages before it received the 'init' message from the guest content. We can't rely on the messages only arriving after an 'init' is received from the guest content. The channel should be considered up and ready from the moment that the *Chrome* side sends its 'init' to the guest content. We also can't rely on the guest content sending only expected messages, since the web app frameworks we use for the guest content generate messages for ui events like scrolling of the guest content, that we do not process. Bug: 1161564 Change-Id: I209d0a23b01dd8553a4ede5dedaff2a98f4f8ec3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2618621Reviewed-by:Yilkal Abe <yilkal@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Dan S <danan@chromium.org> Cr-Commit-Position: refs/heads/master@{#841894}
Showing
Please register or sign in to comment