Commit f206a0a7 authored by tasak@google.com's avatar tasak@google.com

Fixed toV8 with empty context in InspectorFrontendClientImpl::windowObjectCleared

BUG=369451

Review URL: https://codereview.chromium.org/301113002

git-svn-id: svn://svn.chromium.org/blink/trunk@175253 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 324e9034
......@@ -69,8 +69,8 @@ void InspectorFrontendClientImpl::windowObjectCleared()
if (m_frontendHost)
m_frontendHost->disconnectClient();
m_frontendHost = InspectorFrontendHost::create(this, m_frontendPage);
v8::Handle<v8::Value> frontendHostObj = toV8(m_frontendHost.get(), v8::Handle<v8::Object>(), frameContext->GetIsolate());
v8::Handle<v8::Object> global = frameContext->Global();
v8::Handle<v8::Value> frontendHostObj = toV8(m_frontendHost.get(), global, frameContext->GetIsolate());
global->Set(v8::String::NewFromUtf8(isolate, "InspectorFrontendHost"), frontendHostObj);
ScriptController* scriptController = m_frontendPage->mainFrame() ? &m_frontendPage->mainFrame()->script() : 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment