Index: chrome/browser/ui/find_bar/find_bar_controller.cc |
diff --git a/chrome/browser/ui/find_bar/find_bar_controller.cc b/chrome/browser/ui/find_bar/find_bar_controller.cc |
index 713c3fa0984cbf5303fb1af640a47d0266e9b60c..9dc04d94128ce25b85edc8a63ca35eb27923ace1 100644 |
--- a/chrome/browser/ui/find_bar/find_bar_controller.cc |
+++ b/chrome/browser/ui/find_bar/find_bar_controller.cc |
@@ -112,6 +112,13 @@ void FindBarController::ChangeWebContents(WebContents* contents) { |
MaybeSetPrepopulateText(); |
+ // Disappearing Findbox. |
+ if (find_tab_helper && find_tab_helper->isloading_at_tabchange()) { |
+ find_tab_helper->set_isloading_at_tabchange(false); |
+ EndFindSession(kKeepSelectionOnPage, kClearResultsInFindBox); |
+ return; |
+ } |
+ |
if (find_tab_helper && find_tab_helper->find_ui_active()) { |
// A tab with a visible find bar just got selected and we need to show the |
// find bar but without animation since it was already animated into its |