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

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: update 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 152eceb6e4b3ed7fc238f64250fb1bfd54c9d7e6..a31086afbd70181abff470d792b2d5b968ee7b27 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -268,7 +268,8 @@ void MakeNavigateParams(const NavigationEntryImpl& entry,
} // namespace
WebContents* WebContents::Create(const WebContents::CreateParams& params) {
- return WebContentsImpl::CreateWithOpener(params, NULL);
+ return WebContentsImpl::CreateWithOpener(
+ params, static_cast<WebContentsImpl*>(params.opener));
}
WebContents* WebContents::CreateWithSessionStorage(

Powered by Google App Engine
This is Rietveld 408576698