diff options
Diffstat (limited to 'chrome/browser/ssl_blocking_page.cc')
| -rw-r--r-- | chrome/browser/ssl_blocking_page.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/ssl_blocking_page.cc b/chrome/browser/ssl_blocking_page.cc index a8f5152..699c9e2 100644 --- a/chrome/browser/ssl_blocking_page.cc +++ b/chrome/browser/ssl_blocking_page.cc @@ -171,7 +171,10 @@ void SSLBlockingPage::Observe(NotificationType type, // the last entry is kept for the restoring on next start-up. Browser* browser = Browser::GetBrowserForController(tab_->controller(), NULL); - if (remove_last_entry_ && + // We may not have a browser (this is the case for constrained popups), in + // which case it does not matter if we do not remove the temporary entry + // as their navigation history is not saved. + if (remove_last_entry_ && browser && !browser->tabstrip_model()->closing_all()) { tab_->controller()->RemoveLastEntry(); } |
