Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8010)

Unified Diff: chrome/test/chromedriver/navigation_tracker.cc

Issue 12230021: [chromedriver] Send all OnConnected before any OnEvent when connected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/chromedriver/navigation_tracker.cc
diff --git a/chrome/test/chromedriver/navigation_tracker.cc b/chrome/test/chromedriver/navigation_tracker.cc
index 0d26474f4af3805bfebb8b090bf6fccc9ebe1468..bdc1352eed7b20d6ebddf9d5da7b8ed581897299 100644
--- a/chrome/test/chromedriver/navigation_tracker.cc
+++ b/chrome/test/chromedriver/navigation_tracker.cc
@@ -22,6 +22,7 @@ bool NavigationTracker::IsPendingNavigation(const std::string& frame_id) {
}
Status NavigationTracker::OnConnected() {
+ frame_state_.clear();
// Enable page domain notifications to allow tracking navigation state.
base::DictionaryValue params;
return client_->SendCommand("Page.enable", params);
« chrome/test/chromedriver/devtools_client_impl.cc ('K') | « chrome/test/chromedriver/frame_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698