summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_widget_host.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 21:52:10 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 21:52:10 +0000
commit7fe2c0b8630fabd9919dc61757392ea2aac9d72b (patch)
treee62d4ffdc74da800596e584def2ba3eef58f5f8d /chrome/browser/render_widget_host.cc
parent1aba79c9137e3b44ab37b1d48f1575704331ed7e (diff)
downloadchromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.zip
chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.tar.gz
chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.tar.bz2
Attempt at fixing crash in WebContents::ShowWidget. I suspect this is
happening because the RenderWidgetHost is getting destroyed between the time it is created but before it it shown (perhaps the renderer went away). BUG=4629 TEST=none Review URL: http://codereview.chromium.org/12439 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_widget_host.cc')
-rw-r--r--chrome/browser/render_widget_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/render_widget_host.cc b/chrome/browser/render_widget_host.cc
index 7374c92..41fd233 100644
--- a/chrome/browser/render_widget_host.cc
+++ b/chrome/browser/render_widget_host.cc
@@ -667,6 +667,11 @@ void RenderWidgetHost::ViewDestroyed() {
}
void RenderWidgetHost::Destroy() {
+ NotificationService::current()->Notify(
+ NOTIFY_RENDER_WIDGET_HOST_DESTROYED,
+ Source<RenderWidgetHost>(this),
+ NotificationService::NoDetails());
+
// Tell the view to die.
// Note that in the process of the view shutting down, it can call a ton
// of other messages on us. So if you do any other deinitialization here,