mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: warn when nodeIntegration's default is relied on (#16004)
This commit is contained in:
committed by
Cheng Zhao
parent
e8d4a07137
commit
913a433576
@@ -98,6 +98,9 @@ WebContentsPreferences::WebContentsPreferences(
|
||||
|
||||
instances_.push_back(this);
|
||||
|
||||
preference_.SetKey(options::kNodeIntegrationWasExplicitlyEnabled,
|
||||
base::Value(IsEnabled(options::kNodeIntegration)));
|
||||
|
||||
// Set WebPreferences defaults onto the JS object
|
||||
SetDefaultBoolIfUndefined(options::kPlugins, false);
|
||||
SetDefaultBoolIfUndefined(options::kExperimentalFeatures, false);
|
||||
|
||||
Reference in New Issue
Block a user