Index: chrome/browser/content_settings/tab_specific_content_settings.cc |
diff --git a/chrome/browser/content_settings/tab_specific_content_settings.cc b/chrome/browser/content_settings/tab_specific_content_settings.cc |
index 1d6cf1a146f08f7c10bb0f1e833c846a05a37eb9..bece6fc7644a115a89b7ce41462f9851b0569537 100644 |
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc |
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc |
@@ -790,8 +790,10 @@ bool TabSpecificContentSettings::OnMessageReceived( |
void TabSpecificContentSettings::DidStartNavigation( |
content::NavigationHandle* navigation_handle) { |
- if (!navigation_handle->IsInMainFrame() || navigation_handle->IsSamePage()) |
+ if (!navigation_handle->IsInMainFrame() || |
+ navigation_handle->IsSameDocument()) { |
return; |
+ } |
const content::NavigationController& controller = |
web_contents()->GetController(); |
@@ -814,7 +816,7 @@ void TabSpecificContentSettings::DidFinishNavigation( |
content::NavigationHandle* navigation_handle) { |
if (!navigation_handle->IsInMainFrame() || |
!navigation_handle->HasCommitted() || |
- navigation_handle->IsSamePage()) { |
+ navigation_handle->IsSameDocument()) { |
return; |
} |