Fix browser crash when closing popups (issue 3631).
commit8907d0469ed010147265c95017102d1d976565f3
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 28 Oct 2008 21:49:11 +0000 (28 21:49 +0000)
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 28 Oct 2008 21:49:11 +0000 (28 21:49 +0000)
treeebd07a3271022d5d0e21a8a185735c4221c36139
parent928afbc588e8b48b9c7af579a63b11d904c80089
Fix browser crash when closing popups (issue 3631).

The Google Bookmarks bookmarklet opens a popup window that allows you to bookmark a page. When the window closes we crash because we dereference a NULL TabContents pointer the we get from GetSelectedTabContents(). This fixes that.

Review URL: http://codereview.chromium.org/8185

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4093 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/views/frame/browser_view2.cc