summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-27 11:29:49 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-27 11:29:49 (GMT)
commit4659635afd71784dee7b83839b4edcada004ca71 (patch)
tree493a76b15b3b9435cc5ce0d81a2b704b5244a568
parent572715ad6f6bd776922579295408263189eb9419 (diff)
Disable more feature for mailer
-rw-r--r--messageviewer/src/viewer/webengine/mailwebenginepage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/messageviewer/src/viewer/webengine/mailwebenginepage.cpp b/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
index 88039ba..894f4e6 100644
--- a/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
+++ b/messageviewer/src/viewer/webengine/mailwebenginepage.cpp
@@ -57,13 +57,17 @@ void MailWebEnginePage::initialize()
settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, false);
settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false);
settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, false);
+ settings()->setAttribute(QWebEngineSettings::HyperlinkAuditingEnabled, false);
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
settings()->setAttribute(QWebEngineSettings::WebGLEnabled, false);
settings()->setAttribute(QWebEngineSettings::AutoLoadIconsForPage, false);
+ settings()->setAttribute(QWebEngineSettings::Accelerated2dCanvasEnabled, false);
+ settings()->setAttribute(QWebEngineSettings::WebGLEnabled, false);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
settings()->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, false);
+ settings()->setAttribute(QWebEngineSettings::AllowRunningInsecureContent, false);
#endif
const QFontInfo font(QFontDatabase().systemFont(QFontDatabase::GeneralFont));