| Index: chrome/browser/tab_contents/tab_contents.cc
|
| diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
|
| index 464531507a25d2ac7d8d71ec16eb451a5494f883..3c36786e358096f28d93c375200b676936a4921b 100644
|
| --- a/chrome/browser/tab_contents/tab_contents.cc
|
| +++ b/chrome/browser/tab_contents/tab_contents.cc
|
| @@ -1073,8 +1073,10 @@ void TabContents::WillClose(ConstrainedWindow* window) {
|
| bool removed_topmost_window = it == child_windows_.begin();
|
| if (it != child_windows_.end())
|
| child_windows_.erase(it);
|
| - if (removed_topmost_window && child_windows_.size() > 0) {
|
| - child_windows_[0]->ShowConstrainedWindow();
|
| + if (child_windows_.size() > 0) {
|
| + if (removed_topmost_window) {
|
| + child_windows_[0]->ShowConstrainedWindow();
|
| + }
|
| BlockTabContent(true);
|
| } else {
|
| BlockTabContent(false);
|
|
|