mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: libuv hang when nodeIntegrationInSubframes enabled (#27879)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user