| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 661b4db001cf8a8554d4b13d30ff3275dc282e73..e17f555df95651a9f82db477c4c9ad9e175d253c 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -3544,7 +3544,7 @@ void WebContentsImpl::DidNavigateAnyFramePostCommit(
|
| has_accessed_initial_document_ = false;
|
|
|
| // If we navigate off the page, close all JavaScript dialogs.
|
| - if (!details.is_in_page)
|
| + if (!details.is_same_document)
|
| CancelActiveAndPendingDialogs();
|
|
|
| // If this is a user-initiated navigation, start allowing JavaScript dialogs
|
|
|