Set human readable context name

This commit is contained in:
Kevin Sawicki 2017-01-10 09:25:10 -08:00
parent 33b6ab11f2
commit eef72647b4

View file

@ -81,6 +81,10 @@ class AtomRenderFrameObserver : public content::RenderFrameObserver {
} }
void CreateIsolatedWorldContext() { void CreateIsolatedWorldContext() {
render_frame_->GetWebFrame()->setIsolatedWorldHumanReadableName(
World::ISOLATED_WORLD,
blink::WebString::fromUTF8("Electron Isolated Context"));
blink::WebScriptSource source("void 0"); blink::WebScriptSource source("void 0");
render_frame_->GetWebFrame()->executeScriptInIsolatedWorld( render_frame_->GetWebFrame()->executeScriptInIsolatedWorld(
World::ISOLATED_WORLD, &source, 1, ExtensionGroup::MAIN_GROUP); World::ISOLATED_WORLD, &source, 1, ExtensionGroup::MAIN_GROUP);