summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-29 14:03:09 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-29 15:32:12 (GMT)
commitdfc6a86f1b25f1da04b8f1df5320fcdd7085bcc1 (patch)
tree5b83653e14c3aeb1c34bc7461341a9edebac3699
parentf0d8b1d6442c338a35c823dc3231f95f31bb6d11 (diff)
Disable some js feature
-rw-r--r--messageviewer/src/viewer/webengine/mailwebenginepage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/messageviewer/src/viewer/webengine/mailwebenginepage.cpp b/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
index 54fc261..dbd84c7 100644
--- a/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
+++ b/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
@@ -50,6 +50,8 @@ void MailWebEnginePage::initialize()
settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, false);
settings()->setAttribute(QWebEngineSettings::XSSAuditingEnabled, false);
settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, false);
+ settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, false);
+ settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false);
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
settings()->setAttribute(QWebEngineSettings::WebGLEnabled, false);
settings()->setAttribute(QWebEngineSettings::AutoLoadIconsForPage, false);