From 12948cd0a47df6d180a3faf36bbb29e211d27c0b Mon Sep 17 00:00:00 2001 From: nowrep Date: Sun, 2 Mar 2014 22:42:10 +0100 Subject: [PATCH] [DNT] Enable sending DoNotTrack header by default --- src/lib/network/networkmanager.cpp | 2 +- src/lib/preferences/preferences.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/network/networkmanager.cpp b/src/lib/network/networkmanager.cpp index aa63c186f..f417a0d53 100644 --- a/src/lib/network/networkmanager.cpp +++ b/src/lib/network/networkmanager.cpp @@ -103,7 +103,7 @@ void NetworkManager::loadSettings() << QLatin1String("live.com") << QLatin1String("i0.cz") << QLatin1String("sermepa.es"); settings.beginGroup("Web-Browser-Settings"); - m_doNotTrack = settings.value("DoNotTrack", false).toBool(); + m_doNotTrack = settings.value("DoNotTrack", true).toBool(); m_sendReferer = settings.value("SendReferer", true).toBool(); m_sslv3Sites = settings.value("SSLv3Sites", sslv3Sites).toStringList(); settings.endGroup(); diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp index 15b9e2e60..c3794316a 100644 --- a/src/lib/preferences/preferences.cpp +++ b/src/lib/preferences/preferences.cpp @@ -322,7 +322,7 @@ Preferences::Preferences(BrowserWindow* window, QWidget* parent) ui->deleteHtml5storageOnClose->setChecked(settings.value("deleteHTML5StorageOnClose", false).toBool()); connect(ui->html5storage, SIGNAL(toggled(bool)), this, SLOT(allowHtml5storageChanged(bool))); // Other - ui->doNotTrack->setChecked(settings.value("DoNotTrack", false).toBool()); + ui->doNotTrack->setChecked(settings.value("DoNotTrack", true).toBool()); ui->sendReferer->setChecked(settings.value("SendReferer", true).toBool()); //CSS Style