From 2eaf9dd9583136aea0dbb133f632226d8771e02c Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Tue, 1 Mar 2011 23:18:33 +0000 Subject: Makes instant show SSL error page. Because these end up with a different RenderViewHost I wasn't seeing the paint, and wasn't showing the preview. I've plumbed through notification so that I can detect this case. I'm writing the test for this separately. BUG=74085 TEST=see bug Review URL: http://codereview.chromium.org/6597056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76458 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/tab_contents/interstitial_page.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content') diff --git a/content/browser/tab_contents/interstitial_page.cc b/content/browser/tab_contents/interstitial_page.cc index c97d946..0dd06ea 100644 --- a/content/browser/tab_contents/interstitial_page.cc +++ b/content/browser/tab_contents/interstitial_page.cc @@ -19,6 +19,7 @@ #include "chrome/common/bindings_policy.h" #include "chrome/common/dom_storage_common.h" #include "chrome/common/net/url_request_context_getter.h" +#include "chrome/common/notification_service.h" #include "chrome/common/notification_source.h" #include "content/browser/browser_thread.h" #include "content/browser/renderer_host/render_process_host.h" @@ -355,6 +356,11 @@ void InterstitialPage::DidNavigate( render_view_host_->view()->Show(); tab_->set_interstitial_page(this); + NotificationService::current()->Notify( + NotificationType::INTERSTITIAL_ATTACHED, + Source(tab_), + NotificationService::NoDetails()); + RenderWidgetHostView* rwh_view = tab_->render_view_host()->view(); // The RenderViewHost may already have crashed before we even get here. -- cgit v1.1