Index: chrome/test/chromedriver/chrome/navigation_tracker.cc |
diff --git a/chrome/test/chromedriver/chrome/navigation_tracker.cc b/chrome/test/chromedriver/chrome/navigation_tracker.cc |
index ed9ad877d9fa98e9bfa44d9cf0992e7f82225511..540e83dfef38846d6ebd30c97abf0524efcc1043 100644 |
--- a/chrome/test/chromedriver/chrome/navigation_tracker.cc |
+++ b/chrome/test/chromedriver/chrome/navigation_tracker.cc |
@@ -181,7 +181,8 @@ Status NavigationTracker::OnEvent(DevToolsClient* client, |
Status NavigationTracker::OnCommandSuccess(DevToolsClient* client, |
const std::string& method) { |
- if (method == "Page.navigate" && loading_state_ != kLoading) { |
+ if ((method == "Page.navigate" || method == "Page.navigateToHistoryEntry") && |
+ loading_state_ != kLoading) { |
// At this point the browser has initiated the navigation, but besides that, |
// it is unknown what will happen. |
// |