summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-29 19:04:07 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-29 19:04:07 (GMT)
commit692e5e3f0923b1ba3dc0c01d6383ce9ab16890c9 (patch)
tree21e515e9065f250dbd2c8d90a69b7b6e820b36e4
parent9216c53839ee536b3fac80fb920ff2ef4b8defdf (diff)
Disable some qtwebengine feature
-rw-r--r--src/editor/addresseditor/webengine/addresseslocationenginepage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/editor/addresseditor/webengine/addresseslocationenginepage.cpp b/src/editor/addresseditor/webengine/addresseslocationenginepage.cpp
index 20a13ca..fdc6f24 100644
--- a/src/editor/addresseditor/webengine/addresseslocationenginepage.cpp
+++ b/src/editor/addresseditor/webengine/addresseslocationenginepage.cpp
@@ -30,6 +30,13 @@ AddressesLocationEnginePage::AddressesLocationEnginePage(QObject *parent)
settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, false);
settings()->setAttribute(QWebEngineSettings::PluginsEnabled, false);
settings()->setAttribute(QWebEngineSettings::AutoLoadImages, true);
+ settings()->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false);
+ settings()->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, false);
+ 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);
}