Fix crashes when loading Flash plugins with extensions disabled (issue #2359)

This commit is contained in:
Marshall Greenblatt
2018-02-02 19:01:36 -05:00
parent a2f430c6f3
commit d7e1312e9d
6 changed files with 37 additions and 6 deletions

View File

@@ -288,6 +288,8 @@ void SetCommandLinePrefDefaults(CommandLinePrefStore* prefs) {
SetBool(prefs, prefs::kWebKitLoadsImagesAutomatically, false);
if (command_line->HasSwitch(switches::kDisableTabToLinks))
SetBool(prefs, prefs::kWebkitTabsToLinks, false);
if (command_line->HasSwitch(switches::kDisablePlugins))
SetBool(prefs, prefs::kWebKitPluginsEnabled, false);
}
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {