| Index: chrome/browser/ui/blocked_content/blocked_content_container.cc
|
| diff --git a/chrome/browser/ui/blocked_content/blocked_content_container.cc b/chrome/browser/ui/blocked_content/blocked_content_container.cc
|
| index 09defd8b93dac239cdf1bd97c0e78eceacd38959..11204ea6794228291373b76e89be08613cd7c58e 100644
|
| --- a/chrome/browser/ui/blocked_content/blocked_content_container.cc
|
| +++ b/chrome/browser/ui/blocked_content/blocked_content_container.cc
|
| @@ -163,6 +163,12 @@ bool BlockedContentContainer::IsPopup(const TabContents* source) const {
|
| return true;
|
| }
|
|
|
| +bool BlockedContentContainer::ShouldSuppressDialogs() {
|
| + // Suppress JavaScript dialogs when inside a constrained popup window (because
|
| + // that activates them and breaks them out of the constrained window jail).
|
| + return true;
|
| +}
|
| +
|
| TabContents* BlockedContentContainer::GetConstrainingContents(
|
| TabContents* source) {
|
| return owner_->tab_contents();
|
|
|