Update GetRootRenderWidgetHostView() to explore the tree using RFH.
GetRootRenderWidgetHostView() and GetParentRenderWidget() explore the FrameTree using FrameTreeNode. Once it is done, it returns the RenderWidgetHostView associated with the current RenderFrameHost on that FrameTreeNode. The issue: there is no 1:1 association between the FrameTreeNode and the RenderFrameHost. A FrameTreeNode, contains several RenderframeHost: * The current one. * The pending one, not displayed and used for loading a new document, but this one has still not committed. * The ones in pending deletion. Those are no more displayed and are in progress executing their javascript unload handlers. Instead of exploring the tree using FrameTreeNode::parent(), explore the tree using RenderFrameHost::GetParent(). That way, it is guaranteed the functions will always returns the same object. Bug: 609963 Change-Id: Ic8972180b94763bd6a831f2754d1e3c661c0bbc4 Reviewed-on: https://chromium-review.googlesource.com/1210942Reviewed-by:Ken Buchanan <kenrb@chromium.org> Reviewed-by:
Alex Moshchuk <alexmos@chromium.org> Reviewed-by:
Lucas Gadani <lfg@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#593130}
Showing
Please register or sign in to comment