fix: window.open not overriding parent's webPreferences (#32057)
* fix: window.open not overriding parent's webPreferences * test: remove "nativeWindowOpen: false" from renderer tests
This commit is contained in:
parent
77287febf4
commit
35ac7fb8e6
12 changed files with 98 additions and 33 deletions
|
@ -157,6 +157,7 @@ void ElectronRendererClient::WillReleaseScriptContext(
|
|||
// We also do this if we have disable electron site instance overrides to
|
||||
// avoid memory leaks
|
||||
auto prefs = render_frame->GetBlinkPreferences();
|
||||
gin_helper::MicrotasksScope microtasks_scope(env->isolate());
|
||||
node::FreeEnvironment(env);
|
||||
if (env == node_bindings_->uv_env())
|
||||
node::FreeIsolateData(node_bindings_->isolate_data());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue