diff options
-rw-r--r-- | chrome/test/base/ui_test_utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc index bc975a7..a388936 100644 --- a/chrome/test/base/ui_test_utils.cc +++ b/chrome/test/base/ui_test_utils.cc @@ -336,6 +336,8 @@ static void NavigateToURLWithDispositionBlockUntilNavigationsComplete( int number_of_navigations, WindowOpenDisposition disposition, int browser_test_flags) { + if (disposition == CURRENT_TAB) + WaitForLoadStop(browser->GetSelectedTabContents()); TestNavigationObserver same_tab_observer( content::Source<NavigationController>( &browser->GetSelectedTabContents()->controller()), |