Embed Native object only to main frame

This commit is contained in:
Oleg Korshul
2020-03-18 18:07:32 +03:00
parent 4dbf375bcc
commit 1997ab96e1

View File

@ -418,6 +418,9 @@ class ClientRenderDelegate : public client::ClientAppRenderer::Delegate {
message_router_->OnContextCreated(browser, frame, context);
if (!frame->IsMain())
return;
// add AscEditorNative
CefRefPtr<CefV8Value> object = context->GetGlobal();