fix: do not enable node integration in child window if not enabled (#15076)
This commit is contained in:
parent
2a4f5c3284
commit
0252d7686c
4 changed files with 47 additions and 0 deletions
|
@ -405,6 +405,8 @@ void WebContentsPreferences::OverrideWebkitPrefs(
|
|||
std::string encoding;
|
||||
if (GetAsString(&preference_, "defaultEncoding", &encoding))
|
||||
prefs->default_encoding = encoding;
|
||||
|
||||
prefs->node_integration = IsEnabled(options::kNodeIntegration);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue