Index: content/browser/web_contents/web_contents_impl.cc |
=================================================================== |
--- content/browser/web_contents/web_contents_impl.cc (revision 256801) |
+++ content/browser/web_contents/web_contents_impl.cc (working copy) |
@@ -1354,6 +1354,11 @@ |
new WebContentsImpl(GetBrowserContext(), |
params.opener_suppressed ? NULL : this); |
+ NotificationService::current()->Notify( |
+ NOTIFICATION_WEB_CONTENTS_CREATE_NEW_WINDOW, |
+ Source<WebContents>(this), |
+ Details<WebContents>(new_contents)); |
+ |
new_contents->GetController().SetSessionStorageNamespace( |
partition_id, |
session_storage_namespace); |
@@ -1377,6 +1382,7 @@ |
if (params.disposition == NEW_BACKGROUND_TAB) |
create_params.initially_hidden = true; |
new_contents->Init(create_params); |
+ new_contents->RenderViewCreated(new_contents->GetRenderViewHost()); |
// Save the window for later if we're not suppressing the opener (since it |
// will be shown immediately). |