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

Unified Diff: chrome/test/chromedriver/frame_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: Address comments. 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
« no previous file with comments | « chrome/test/chromedriver/dom_tracker.cc ('k') | chrome/test/chromedriver/navigation_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/frame_tracker.cc
diff --git a/chrome/test/chromedriver/frame_tracker.cc b/chrome/test/chromedriver/frame_tracker.cc
index e03c105a998167248ca7a5eae484abab736b450a..455d922aaa09f1a9e0aedaecfae8f8c7b088ab44 100644
--- a/chrome/test/chromedriver/frame_tracker.cc
+++ b/chrome/test/chromedriver/frame_tracker.cc
@@ -36,6 +36,8 @@ Status FrameTracker::GetContextIdForFrame(
}
Status FrameTracker::OnConnected() {
+ frame_to_context_map_.clear();
+ context_to_frame_map_.clear();
// Enable runtime events to allow tracking execution context creation.
base::DictionaryValue params;
Status status = client_->SendCommand("Runtime.enable", params);
« no previous file with comments | « chrome/test/chromedriver/dom_tracker.cc ('k') | chrome/test/chromedriver/navigation_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698