mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: add deprecation warning about new webviewTag default (#16059)
This commit is contained in:
committed by
Cheng Zhao
parent
05d6dbc06a
commit
b2913e5b7c
@@ -102,6 +102,10 @@ WebContentsPreferences::WebContentsPreferences(
|
||||
base::Value(IsEnabled(options::kNodeIntegration)));
|
||||
preference_.SetKey(options::kContextIsolationWasExplicitlyDisabled,
|
||||
base::Value(!IsEnabled(options::kContextIsolation, true)));
|
||||
preference_.SetKey(
|
||||
options::kWebviewTagWasExplicitlyEnabled,
|
||||
base::Value(IsEnabled(options::kWebviewTag,
|
||||
IsEnabled(options::kNodeIntegration))));
|
||||
|
||||
// Set WebPreferences defaults onto the JS object
|
||||
SetDefaultBoolIfUndefined(options::kPlugins, false);
|
||||
|
||||
Reference in New Issue
Block a user