| Index: chrome/browser/blocked_popup_container.cc
|
| ===================================================================
|
| --- chrome/browser/blocked_popup_container.cc (revision 62133)
|
| +++ chrome/browser/blocked_popup_container.cc (working copy)
|
| @@ -35,6 +35,9 @@
|
|
|
| blocked_popups_.push_back(BlockedPopup(tab_contents, bounds));
|
| tab_contents->set_delegate(this);
|
| + // Since the new tab_contents will not be showed, call WasHidden to change
|
| + // its status on both RenderViewHost and RenderView.
|
| + tab_contents->WasHidden();
|
| if (blocked_popups_.size() == 1)
|
| owner_->PopupNotificationVisibilityChanged(true);
|
| }
|
| @@ -45,6 +48,8 @@
|
| i != blocked_popups_.end(); ++i) {
|
| if (i->tab_contents == tab_contents) {
|
| tab_contents->set_delegate(NULL);
|
| + // We needn't call WasRestored to change its status because the
|
| + // TabContents::AddNewContents will do it.
|
| owner_->AddNewContents(tab_contents, NEW_POPUP, i->bounds, true);
|
| blocked_popups_.erase(i);
|
| break;
|
|
|