fix: libuv hang when nodeIntegrationInSubframes enabled (#27879)

This commit is contained in:
Shelley Vohr
2021-02-24 08:58:32 +00:00
committed by GitHub
parent 44adc8ddb4
commit b70e42024a
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);