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

Unified Diff: webkit/glue/webdevtoolsagent_impl.cc

Issue 100261: DevTools: Fix access violation (null pointer) on document tear down. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « webkit/glue/devtools/debugger_agent_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webdevtoolsagent_impl.cc
===================================================================
--- webkit/glue/webdevtoolsagent_impl.cc (revision 15038)
+++ webkit/glue/webdevtoolsagent_impl.cc (working copy)
@@ -78,7 +78,7 @@
if (doc) {
// Reuse existing context in case detached/attached.
if (utility_context_.IsEmpty()) {
- debugger_agent_impl_->CreateUtilityContext(doc, &utility_context_);
+ debugger_agent_impl_->ResetUtilityContext(doc, &utility_context_);
}
dom_agent_impl_->SetDocument(doc);
net_agent_impl_->SetDocument(doc);
@@ -116,7 +116,7 @@
} else {
doc = NULL;
}
- debugger_agent_impl_->CreateUtilityContext(doc, &utility_context_);
+ debugger_agent_impl_->ResetUtilityContext(doc, &utility_context_);
dom_agent_impl_->SetDocument(doc);
net_agent_impl_->SetDocument(doc);
}
« no previous file with comments | « webkit/glue/devtools/debugger_agent_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698