fix: do not enable node integration in child window if not enabled (#15108)

This commit is contained in:
Cheng Zhao 2018-10-16 18:10:31 +09:00 committed by GitHub
parent 5cb50b0e33
commit 4a5d2117ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -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,