summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-09-11 18:41:15 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-09-12 17:11:03 +0200
commit772ba138c069b77b31604d190dd99a07b06d1d9f (patch)
tree01ccdc3a446efaf14eb4d5c5c6360b627f44a887
parentdce5b2a30773bbf508afda54601dd84e8cb691ce (diff)
Enable JavascriptCanOpenWindows and LocalStorageEnabled by default
Both QWebEnginePage::createWindow and QQuickWebEngineNewViewRequest behave as if JavascriptCanOpenWindows was disabled by default, when the application isn't handling new window signals. LocalStorageEnabled should have no negative impact to be enabled beside the used disk space, but is still less inconvenient than cookies or disk cache, which are also enabled by default. Change-Id: I3f5343c2410fac50bec08b386defe22baf3df440 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
-rw-r--r--src/core/web_engine_settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/web_engine_settings.cpp b/src/core/web_engine_settings.cpp
index 6af3210bf..363cd9c6a 100644
--- a/src/core/web_engine_settings.cpp
+++ b/src/core/web_engine_settings.cpp
@@ -203,10 +203,10 @@ void WebEngineSettings::initDefaults()
// Initialize the default settings.
m_attributes.insert(AutoLoadImages, true);
m_attributes.insert(JavascriptEnabled, true);
- m_attributes.insert(JavascriptCanOpenWindows, false);
+ m_attributes.insert(JavascriptCanOpenWindows, true);
m_attributes.insert(JavascriptCanAccessClipboard, false);
m_attributes.insert(LinksIncludedInFocusChain, true);
- m_attributes.insert(LocalStorageEnabled, false);
+ m_attributes.insert(LocalStorageEnabled, true);
m_attributes.insert(LocalContentCanAccessRemoteUrls, false);
m_attributes.insert(XSSAuditingEnabled, false);
m_attributes.insert(SpatialNavigationEnabled, false);