Support IPC messages in isolated context

This commit is contained in:
Kevin Sawicki 2016-12-08 16:58:27 -08:00
parent 073d8c2177
commit 78e0b80dc7
4 changed files with 10 additions and 1 deletions

View file

@ -334,6 +334,10 @@ void AtomRendererClient::DidCreateScriptContext(
}
}
v8::Local<v8::Context> AtomRendererClient::GetContext() {
return node_bindings_->uv_env()->context();
}
void AtomRendererClient::WillReleaseScriptContext(
v8::Handle<v8::Context> context, content::RenderFrame* render_frame) {
// Only allow node integration for the main frame, unless it is a devtools