Fix opening of popups from sandboxed iframes (issue #2121)

This commit is contained in:
Marshall Greenblatt
2017-03-15 18:04:16 -04:00
parent 10efe6c2c1
commit 92fba9ccdf
5 changed files with 30 additions and 26 deletions

View File

@@ -2244,10 +2244,13 @@ bool CefBrowserHostImpl::CanDragEnter(
void CefBrowserHostImpl::GetCustomWebContentsView(
content::WebContents* web_contents,
const GURL& target_url,
int opener_render_process_id,
int opener_render_frame_id,
content::WebContentsView** view,
content::RenderViewHostDelegateView** delegate_view) {
CefBrowserInfoManager::GetInstance()->GetCustomWebContentsView(
web_contents, target_url, view, delegate_view);
target_url, opener_render_process_id, opener_render_frame_id, view,
delegate_view);
}
void CefBrowserHostImpl::WebContentsCreated(
@@ -2262,8 +2265,8 @@ void CefBrowserHostImpl::WebContentsCreated(
std::unique_ptr<CefBrowserPlatformDelegate> platform_delegate;
CefBrowserInfoManager::GetInstance()->WebContentsCreated(
source_contents, target_url, new_contents, settings, client,
platform_delegate);
target_url, opener_render_process_id, opener_render_frame_id, settings,
client, platform_delegate);
scoped_refptr<CefBrowserInfo> info =
CefBrowserInfoManager::GetInstance()->CreatePopupBrowserInfo(