diff options
-rw-r--r-- | content/renderer/devtools_agent_filter.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/renderer/devtools_agent_filter.cc b/content/renderer/devtools_agent_filter.cc index 4e42ce3..69b5298 100644 --- a/content/renderer/devtools_agent_filter.cc +++ b/content/renderer/devtools_agent_filter.cc @@ -9,6 +9,7 @@ #include "content/common/devtools_messages.h" #include "content/renderer/devtools_agent.h" #include "content/renderer/plugin_channel_host.h" +#include "content/renderer/render_thread.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" @@ -68,6 +69,7 @@ void DevToolsAgentFilter::OnFilterAdded(IPC::Channel* channel) { void DevToolsAgentFilter::OnDispatchOnInspectorBackend( const std::string& message) { + RenderThread::current()->EnsureWebKitInitialized(); if (!WebDevToolsAgent::shouldInterruptForMessage( WebString::fromUTF8(message))) { message_handled_ = false; |