summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdevtoolsagent_impl.cc
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 15:19:00 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 15:19:00 +0000
commitc09a47cef0a96e98ed4c6b45cfe13da4be171ec0 (patch)
tree2c22bc4a3703ba57b8d07a11d6839dc7fe952e82 /webkit/glue/webdevtoolsagent_impl.cc
parent3641da6c02910960ef419d38a161081a9ce1d7b2 (diff)
downloadchromium_src-c09a47cef0a96e98ed4c6b45cfe13da4be171ec0.zip
chromium_src-c09a47cef0a96e98ed4c6b45cfe13da4be171ec0.tar.gz
chromium_src-c09a47cef0a96e98ed4c6b45cfe13da4be171ec0.tar.bz2
DevTools: Push context id to the client on 'window object cleared' event.
Review URL: http://codereview.chromium.org/155217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdevtoolsagent_impl.cc')
-rw-r--r--webkit/glue/webdevtoolsagent_impl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/webdevtoolsagent_impl.cc b/webkit/glue/webdevtoolsagent_impl.cc
index cabcdd7..a4fb566 100644
--- a/webkit/glue/webdevtoolsagent_impl.cc
+++ b/webkit/glue/webdevtoolsagent_impl.cc
@@ -167,6 +167,10 @@ void WebDevToolsAgentImpl::DidCommitLoadForFrame(
void WebDevToolsAgentImpl::WindowObjectCleared(WebFrameImpl* webframe) {
DebuggerAgentManager::SetHostId(webframe, host_id_);
+ if (attached_) {
+ // Push context id into the client if it is already attached.
+ debugger_agent_delegate_stub_->SetContextId(host_id_);
+ }
}
void WebDevToolsAgentImpl::ForceRepaint() {