Set human readable context name
This commit is contained in:
parent
33b6ab11f2
commit
eef72647b4
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue