chore: add deprecation warning about new webviewTag default (#16059)

This commit is contained in:
Jeremy Apthorp
2018-12-13 17:15:12 -08:00
committed by Cheng Zhao
parent 05d6dbc06a
commit b2913e5b7c
4 changed files with 34 additions and 1 deletions

View File

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