summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-09-20 10:08:54 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-09-25 00:22:27 +0000
commita4c0485bdfae3b4aac979e86b5e62f4da589e1a7 (patch)
tree21fac81569a8a983bfd5b8986de81221964f5b6f /src/core
parenta301473c4bd2a2956ea4986679b4a80f01bce2d9 (diff)
Disable local database when local storage is disabled
Ties the feature switch for Indexed DB to the same as local storage. Change-Id: I9ea8992cc00097a8f7bd86236f8cd43008566d2b Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/web_engine_settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_engine_settings.cpp b/src/core/web_engine_settings.cpp
index 550fd2814..fb0f7e839 100644
--- a/src/core/web_engine_settings.cpp
+++ b/src/core/web_engine_settings.cpp
@@ -304,6 +304,7 @@ void WebEngineSettings::applySettingsToWebPreferences(content::WebPreferences *p
prefs->javascript_can_access_clipboard = testAttribute(JavascriptCanAccessClipboard);
prefs->tabs_to_links = testAttribute(LinksIncludedInFocusChain);
prefs->local_storage_enabled = testAttribute(LocalStorageEnabled);
+ prefs->databases_enabled = testAttribute(LocalStorageEnabled);
prefs->allow_universal_access_from_file_urls = testAttribute(LocalContentCanAccessRemoteUrls);
prefs->xss_auditor_enabled = testAttribute(XSSAuditingEnabled);
prefs->spatial_navigation_enabled = testAttribute(SpatialNavigationEnabled);