Index: components/autofill/browser/autofill_manager.cc |
diff --git a/components/autofill/browser/autofill_manager.cc b/components/autofill/browser/autofill_manager.cc |
index b488ff611d1b9435ac718db2028d16a33d0c469f..35b703c59e24d9735bef6341499e06ab1d54e0a4 100644 |
--- a/components/autofill/browser/autofill_manager.cc |
+++ b/components/autofill/browser/autofill_manager.cc |
@@ -46,6 +46,7 @@ |
#include "components/user_prefs/pref_registry_syncable.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/navigation_details.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_view.h" |
@@ -259,7 +260,8 @@ void AutofillManager::RegisterUserPrefs( |
void AutofillManager::DidNavigateMainFrame( |
const content::LoadCommittedDetails& details, |
const content::FrameNavigateParams& params) { |
- Reset(); |
+ if (details.is_navigation_to_different_page()) |
+ Reset(); |
} |
void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { |