From 00c7087a6dcaec455f296a9e5fdb534ffd31553a Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 13 Apr 2018 14:37:22 +0200 Subject: Branch of Qt5.11 features --- src/browser.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/browser.cpp') 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 &config) @@ -64,9 +63,6 @@ void Browser::setConfiguration(std::shared_ptr &config) m_downloadManager = std::make_shared(QString::fromStdString(m_config->value("downloads.path").value())); m_urlRequestInterceptor = new UrlRequestInterceptor(QString::fromStdString(m_config->value("filter.path").value())); - m_cookieInterceptor = new CookieFilter( - m_config->value("filter.cookies.block.all").value(), - m_config->value("filter.cookies.block.thirdParty").value()); // set default profile m_defaultProfile = profile(QString::fromStdString(m_config->value("browser.profile").value())); @@ -154,10 +150,6 @@ std::shared_ptr 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); -- cgit v1.2.1