mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Set human readable context name
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user