fix: libuv hang when nodeIntegrationInSubframes enabled (#27582)
This commit is contained in:
parent
980b32fce7
commit
642d6fca91
3 changed files with 19 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue