Index: content/browser/tab_contents/tab_contents_view_helper.cc |
diff --git a/content/browser/tab_contents/tab_contents_view_helper.cc b/content/browser/tab_contents/tab_contents_view_helper.cc |
index 69c21c190ae210070056f7bd1e062f3221ca647e..7da542223fea2ca2edfa5f8be43aec0a164a1089 100644 |
--- a/content/browser/tab_contents/tab_contents_view_helper.cc |
+++ b/content/browser/tab_contents/tab_contents_view_helper.cc |
@@ -69,6 +69,7 @@ TabContents* TabContentsViewHelper::CreateNewWindow( |
NULL); |
new_contents->set_opener_web_ui_type( |
web_contents->GetWebUITypeForCurrentState()); |
+ new_contents->set_has_opener(!params.opener_url.is_empty()); |
content::WebContentsView* new_view = new_contents->GetView(); |
// TODO(brettw): It seems bogus that we have to call this function on the |