summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 16:35:49 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 16:35:49 +0000
commit7f37dd931e8f0512d215ddbc16c4e1e714d39d9d (patch)
treea25943da348d0e3945e90a75175a82295f66a857 /chrome/browser/tab_contents
parentd8107dbea736450d8fe5e20f939824bc614dd449 (diff)
downloadchromium_src-7f37dd931e8f0512d215ddbc16c4e1e714d39d9d.zip
chromium_src-7f37dd931e8f0512d215ddbc16c4e1e714d39d9d.tar.gz
chromium_src-7f37dd931e8f0512d215ddbc16c4e1e714d39d9d.tar.bz2
This CL adds a test to insure we are not regressing on http://crbug.com/19941
We would crash when an SSL error would happen on a page with no navigation entry. TEST=Run the test. BUG=http://crbug.com/19941 Review URL: http://codereview.chromium.org/196115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 261d547..0e8471d 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -832,6 +832,10 @@ void TabContents::AddNewContents(TabContents* new_contents,
new_contents->DisassociateFromPopupCount();
delegate_->AddNewContents(this, new_contents, disposition, initial_pos,
user_gesture);
+ NotificationService::current()->Notify(
+ NotificationType::TAB_ADDED,
+ Source<TabContentsDelegate>(delegate_),
+ Details<TabContents>(this));
}
PopupNotificationVisibilityChanged(ShowingBlockedPopupNotification());
}