"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "shell/renderer/electron_renderer_client.cc" between
electron-11.4.1.tar.gz and electron-11.4.2.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

electron_renderer_client.cc  (electron-11.4.1):electron_renderer_client.cc  (electron-11.4.2)
skipping to change at line 180 skipping to change at line 180
// Destroy the node environment. We only do this if node support has been // Destroy the node environment. We only do this if node support has been
// enabled for sub-frames to avoid a change-of-behavior / introduce crashes // enabled for sub-frames to avoid a change-of-behavior / introduce crashes
// for existing users. // for existing users.
// We also do this if we have disable electron site instance overrides to // We also do this if we have disable electron site instance overrides to
// avoid memory leaks // avoid memory leaks
auto* command_line = base::CommandLine::ForCurrentProcess(); auto* command_line = base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kNodeIntegrationInSubFrames) || if (command_line->HasSwitch(switches::kNodeIntegrationInSubFrames) ||
command_line->HasSwitch( command_line->HasSwitch(
switches::kDisableElectronSiteInstanceOverrides)) { switches::kDisableElectronSiteInstanceOverrides)) {
node::RunAtExit(env);
node::FreeEnvironment(env); node::FreeEnvironment(env);
if (env == node_bindings_->uv_env()) if (env == node_bindings_->uv_env())
node::FreeIsolateData(node_bindings_->isolate_data()); node::FreeIsolateData(node_bindings_->isolate_data());
} }
// ElectronBindings is tracking node environments. // ElectronBindings is tracking node environments.
electron_bindings_->EnvironmentDestroyed(env); electron_bindings_->EnvironmentDestroyed(env);
} }
bool ElectronRendererClient::ShouldFork(blink::WebLocalFrame* frame, bool ElectronRendererClient::ShouldFork(blink::WebLocalFrame* frame,
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)