Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 2e6a5f7556dd8378d2b796a9d676fa9c9ce0472c..abf7e4bc9e50a2f0cb90453b9f37f9bc9d6a7786 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -1204,6 +1204,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) { |
GetRenderManager()->Init( |
params.browser_context, params.site_instance, params.routing_id, |
params.main_frame_routing_id); |
+ frame_tree_.root()->SetFrameName(params.main_frame_name); |
WebContentsViewDelegate* delegate = |
GetContentClient()->browser()->GetWebContentsViewDelegate(this); |
@@ -1582,6 +1583,7 @@ void WebContentsImpl::CreateNewWindow( |
CreateParams create_params(GetBrowserContext(), site_instance.get()); |
create_params.routing_id = route_id; |
create_params.main_frame_routing_id = main_frame_route_id; |
+ create_params.main_frame_name = base::UTF16ToUTF8(params.frame_name); |
create_params.opener = this; |
create_params.opener_suppressed = params.opener_suppressed; |
if (params.disposition == NEW_BACKGROUND_TAB) |