feat: add enableWebSQL webpreference (#23311)

* feat: add enableWebSQL webpreference

* chore: update indexedDB test
This commit is contained in:
Robo 2020-05-06 12:52:59 -07:00 committed by GitHub
parent 2a680e107b
commit a707a3eda3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 187 additions and 3 deletions

View file

@ -130,6 +130,7 @@ WebContentsPreferences::WebContentsPreferences(
SetDefaultBoolIfUndefined(options::kImages, true);
SetDefaultBoolIfUndefined(options::kTextAreasAreResizable, true);
SetDefaultBoolIfUndefined(options::kWebGL, true);
SetDefaultBoolIfUndefined(options::kEnableWebSQL, true);
bool webSecurity = true;
SetDefaultBoolIfUndefined(options::kWebSecurity, webSecurity);
// If webSecurity was explicity set to false, let's inherit that into
@ -419,6 +420,10 @@ void WebContentsPreferences::AppendCommandLineSwitches(
}
#endif
// Whether to allow the WebSQL api
if (IsEnabled(options::kEnableWebSQL))
command_line->AppendSwitch(switches::kEnableWebSQL);
// We are appending args to a webContents so let's save the current state
// of our preferences object so that during the lifetime of the WebContents
// we can fetch the options used to initally configure the WebContents