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

This commit is contained in:
Cheng Zhao 2018-10-16 18:10:03 +09:00 committed by GitHub
parent 2a4f5c3284
commit 0252d7686c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 0 deletions

View file

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