RVH::GetMainFrame != FrameTree::GetMainFrame |
|
Issue descriptionIn https://chromium-review.googlesource.com/c/chromium/src/+/795716 I changed RenderFrameHost::FromID(process_id, frame_id)->GetRenderViewHost()->GetMainFrame() to RenderFrameHostImpl::FromID(process_id, frame_id)->frame_tree_node()->frame_tree()->GetMainFrame() which surprised me, because I had expected that both should give me the same frame, however, the former gives me a nullptr when running with --site-isolation
,
Nov 30 2017
We could look at removing RVH::GetMainFrame() (or at least making it internal-only) for that reason. Not sure if that's easy, but worth trying when we get a chance.
,
Nov 30 2017
I mainly filed this because it was surprising to me (and dcheng who reviewed the code didn't catch it either..)
,
Nov 30 2017
There aren't that many calls to RVH::GetMainFrame, it might actually be feasible to remove it. Quick search reveals 17 references, some of them inside content/. |
|
►
Sign in to add a comment |
|
Comment 1 by nasko@chromium.org
, Nov 30 2017