fix: libuv hang when nodeIntegrationInSubframes enabled (#27582)

This commit is contained in:
Shelley Vohr 2021-02-17 03:42:28 +00:00 committed by GitHub
parent 980b32fce7
commit 642d6fca91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View file

@ -112,9 +112,8 @@ void ElectronRendererClient::DidCreateScriptContext(
bool should_load_node =
(is_main_frame || is_devtools || allow_node_in_subframes) &&
!IsWebViewFrame(renderer_context, render_frame);
if (!should_load_node) {
if (!should_load_node)
return;
}
injected_frames_.insert(render_frame);