summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-12-07 20:08:26 (GMT)
committerMontel Laurent <montel@kde.org>2016-12-07 20:08:46 (GMT)
commit66f7143b6a43013c110cf1e580723227679fba11 (patch)
tree00ba70f1781489a947a1e174499a90adb658b875
parent9a0ab1c208566607a2da245441ae2301c537b910 (diff)
It works fine in 5.8.0 => activate it with qt5.8.0
-rw-r--r--plugins/webengineurlinterceptor/donottrack/donottrackinterceptorinterface.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/webengineurlinterceptor/donottrack/donottrackinterceptorinterface.cpp b/plugins/webengineurlinterceptor/donottrack/donottrackinterceptorinterface.cpp
index 7144e23..dea8d09 100644
--- a/plugins/webengineurlinterceptor/donottrack/donottrackinterceptorinterface.cpp
+++ b/plugins/webengineurlinterceptor/donottrack/donottrackinterceptorinterface.cpp
@@ -21,8 +21,6 @@
#include <QtWebEngineCore/qwebengineurlrequestinfo.h>
#include "donottracksettings.h"
-//#define BUG_FIXED 1
-
DoNotTrackInterceptorInterface::DoNotTrackInterceptorInterface(QObject *parent)
: WebEngineViewer::NetworkPluginUrlInterceptorInterface(parent)
{
@@ -36,11 +34,9 @@ DoNotTrackInterceptorInterface::~DoNotTrackInterceptorInterface()
bool DoNotTrackInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &info)
{
if (DoNotTrackSettings::doNotTrack()) {
-#ifdef BUG_FIXED
+#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
//Laurent Comment it for the moment workaround a bug for QtWebEngine
info.setHttpHeader(QByteArrayLiteral("DNT"), QByteArrayLiteral("1"));
-#else
- Q_UNUSED(info);
#endif
}
return false;