fix: do not enable node integration in child window if not enabled (#15108)
This commit is contained in:
parent
5cb50b0e33
commit
4a5d2117ba
3 changed files with 15 additions and 1 deletions
|
@ -331,6 +331,10 @@ void WebContentsPreferences::OverrideWebkitPrefs(
|
|||
std::string encoding;
|
||||
if (dict_.GetString("defaultEncoding", &encoding))
|
||||
prefs->default_encoding = encoding;
|
||||
|
||||
bool node_integration = false;
|
||||
dict_.GetBoolean(options::kNodeIntegration, &node_integration);
|
||||
prefs->node_integration = node_integration;
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::GetInteger(const base::StringPiece& attribute_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue