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 2edfab2507b0977c951adb61d57ae04094bad596..3992daa254a7cce270fa907b07b7f252c10c82ae 100644 |
--- a/content/browser/tab_contents/tab_contents_view_helper.cc |
+++ b/content/browser/tab_contents/tab_contents_view_helper.cc |
@@ -81,6 +81,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()); |
if (params.opener_suppressed) { |
// When the opener is suppressed, the original renderer cannot access the |