Use FrameTreeNodeId to find delay loaded iframes for OnBeforeBrowse (fixes issue #2675, see issue #2498)

This commit is contained in:
Marshall Greenblatt
2019-06-12 11:48:57 +02:00
parent d277dcd5d7
commit 0b7c0be29a
3 changed files with 13 additions and 2 deletions

View File

@ -1576,6 +1576,11 @@ CefRefPtr<CefFrame> CefBrowserHostImpl::GetFrameForHost(
return browser_info_->GetFrameForHost(host);
}
CefRefPtr<CefFrame> CefBrowserHostImpl::GetFrameForFrameTreeNode(
int frame_tree_node_id) {
return browser_info_->GetFrameForFrameTreeNode(frame_tree_node_id, nullptr);
}
void CefBrowserHostImpl::LoadMainFrameURL(const std::string& url,
const content::Referrer& referrer,
ui::PageTransition transition,