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 75896d3c6bc623159543b40ef119f022b8c9f000..0cddbe4ae3827e25218b20ffd808561707f6518c 100644 |
--- a/content/browser/tab_contents/tab_contents_view_helper.cc |
+++ b/content/browser/tab_contents/tab_contents_view_helper.cc |
@@ -65,8 +65,11 @@ TabContents* TabContentsViewHelper::CreateNewWindow( |
route_id, |
static_cast<TabContents*>(web_contents), |
NULL); |
+ // We could potentially add an opener here. That way we would know not to open. We also |
dominich
2012/02/28 16:21:00
nit: line length
cbentzel
2012/02/29 18:16:13
Actually - I don't need this comment anymore.
|
+ // wouldn't need the other stuff. |
new_contents->set_opener_web_ui_type( |
web_contents->GetWebUITypeForCurrentState()); |
+ new_contents->set_opener_origin(GURL(params.opener_security_origin)); |
content::WebContentsView* new_view = new_contents->GetView(); |
// TODO(brettw): It seems bogus that we have to call this function on the |