Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1987)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 fe34bc0ef8a11d9eafcc62fa09f5e9829945b869..6c6cd3413e4ff378216bf76fe5450988c59a6110 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -271,9 +271,10 @@ WebContents* WebContents::Create(const WebContents::CreateParams& params) {
WebContents* WebContents::CreateWithSessionStorage(
const WebContents::CreateParams& params,
- const SessionStorageNamespaceMap& session_storage_namespace_map) {
+ const SessionStorageNamespaceMap& session_storage_namespace_map,
+ WebContents* opener) {
WebContentsImpl* new_contents = new WebContentsImpl(
- params.browser_context, NULL);
+ params.browser_context, static_cast<WebContentsImpl*>(opener));
for (SessionStorageNamespaceMap::const_iterator it =
session_storage_namespace_map.begin();

Powered by Google App Engine
This is Rietveld 408576698