chromeos (--mus): wires recreation of browser plugins correctly for mus
When a browser plugin is recreated we destroy and create a new BrowserPlugin. This necessitates reembedding the WindowTreeClient from the renderer rendering the plugin (because the BrowserPlugin ows the mus window). To get the reembeding working required changing RenderWidgetHostViewGuest to initiate embedding when attached, not init. As the renderer rendering the plugin gets a new connection to mus it needed to be updated. A result of this is the connection to viz is being dropped, which means ClientLayerTreeFrameSink is seeing it's connection dropped. The connection is reestablished by way of calling DidLoseLayerTreeFrameSink(). BUG=755328 TEST=covered by test Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation Change-Id: I43838b38bedaf75a341262fcba3befaca77d5c87 Reviewed-on: https://chromium-review.googlesource.com/773104Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
Ken Buchanan <kenrb@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#517593}
Showing
Please register or sign in to comment