| Index: chrome/browser/ssl/security_state_tab_helper.cc
|
| diff --git a/chrome/browser/ssl/security_state_tab_helper.cc b/chrome/browser/ssl/security_state_tab_helper.cc
|
| index bbaf140537f4491d280d2345a37ba8e0f8eef790..56bb71394238d7f51fee714c9999bce93b7b2c53 100644
|
| --- a/chrome/browser/ssl/security_state_tab_helper.cc
|
| +++ b/chrome/browser/ssl/security_state_tab_helper.cc
|
| @@ -90,7 +90,8 @@ void SecurityStateTabHelper::VisibleSecurityStateChanged() {
|
| void SecurityStateTabHelper::DidStartNavigation(
|
| content::NavigationHandle* navigation_handle) {
|
| if (time_of_http_warning_on_current_navigation_.is_null() ||
|
| - !navigation_handle->IsInMainFrame() || navigation_handle->IsSamePage()) {
|
| + !navigation_handle->IsInMainFrame() ||
|
| + navigation_handle->IsSameDocument()) {
|
| return;
|
| }
|
| // Record how quickly a user leaves a site after encountering an
|
| @@ -109,9 +110,11 @@ void SecurityStateTabHelper::DidStartNavigation(
|
|
|
| void SecurityStateTabHelper::DidFinishNavigation(
|
| content::NavigationHandle* navigation_handle) {
|
| - if (navigation_handle->IsInMainFrame() && !navigation_handle->IsSamePage()) {
|
| + if (navigation_handle->IsInMainFrame() &&
|
| + !navigation_handle->IsSameDocument()) {
|
| // Only reset the console message flag for main-frame navigations,
|
| - // and not for same-page navigations like reference fragments and pushState.
|
| + // and not for same-document navigations like reference fragments and
|
| + // pushState.
|
| logged_http_warning_on_current_navigation_ = false;
|
| }
|
| }
|
|
|