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 fd04a18f5d13357cf60ebe586d5c2fabb88451c8..34a8ffa94aad81dd8c1b2d978839066ab21824eb 100644 |
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc |
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc |
@@ -800,8 +800,10 @@ bool TabSpecificContentSettings::OnMessageReceived( |
void TabSpecificContentSettings::DidStartNavigation( |
content::NavigationHandle* navigation_handle) { |
- if (!navigation_handle->IsInMainFrame() || navigation_handle->IsSamePage()) |
+ if (!navigation_handle->IsInMainFrame() || navigation_handle->IsSamePage() || |
+ navigation_handle->IsSynchronousNavigation()) { |
return; |
+ } |
const content::NavigationController& controller = |
web_contents()->GetController(); |