aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index 5a35a9e..c32aee7 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -35,7 +35,6 @@ Browser::~Browser()
qDebug("Thread pool is done: %s", QThreadPool::globalInstance()->waitForDone() ? "okay" : "failed");
delete m_urlRequestInterceptor;
- delete m_cookieInterceptor;
}
void Browser::setConfiguration(std::shared_ptr<Configuration> &config)
@@ -64,9 +63,6 @@ void Browser::setConfiguration(std::shared_ptr<Configuration> &config)
m_downloadManager = std::make_shared<DownloadsWidget>(QString::fromStdString(m_config->value<std::string>("downloads.path").value()));
m_urlRequestInterceptor = new UrlRequestInterceptor(QString::fromStdString(m_config->value<std::string>("filter.path").value()));
- m_cookieInterceptor = new CookieFilter(
- m_config->value<bool>("filter.cookies.block.all").value(),
- m_config->value<bool>("filter.cookies.block.thirdParty").value());
// set default profile
m_defaultProfile = profile(QString::fromStdString(m_config->value<std::string>("browser.profile").value()));
@@ -154,10 +150,6 @@ std::shared_ptr<WebEngineProfile> Browser::profile(const QString &storageName)
}
_profile->setRequestInterceptor(m_urlRequestInterceptor);
- _profile->cookieStore()->setCookieFilter([this](const QWebEngineCookieStore::FilterRequest &request) {
- // If the cookie access is to be accepted, the filter function should return true; otherwise it should return false.
- return !m_cookieInterceptor->shouldBlock(request);
- });
connect(_profile.get(), &WebEngineProfile::downloadRequested, m_downloadManager.get(), &DownloadsWidget::addDownload);