From eef72647b4be2b8be68bd39d24d30137e1c8aa18 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 10 Jan 2017 09:25:10 -0800 Subject: [PATCH] Set human readable context name --- atom/renderer/atom_renderer_client.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/renderer/atom_renderer_client.cc b/atom/renderer/atom_renderer_client.cc index 78027008373..e785e26c155 100644 --- a/atom/renderer/atom_renderer_client.cc +++ b/atom/renderer/atom_renderer_client.cc @@ -81,6 +81,10 @@ class AtomRenderFrameObserver : public content::RenderFrameObserver { } void CreateIsolatedWorldContext() { + render_frame_->GetWebFrame()->setIsolatedWorldHumanReadableName( + World::ISOLATED_WORLD, + blink::WebString::fromUTF8("Electron Isolated Context")); + blink::WebScriptSource source("void 0"); render_frame_->GetWebFrame()->executeScriptInIsolatedWorld( World::ISOLATED_WORLD, &source, 1, ExtensionGroup::MAIN_GROUP);