From b6181315f7efa4379bf1f22cba1e4480055b902e Mon Sep 17 00:00:00 2001 From: nowrep Date: Tue, 25 Feb 2014 12:12:27 +0100 Subject: [PATCH] [AdBlock] Don't add domain css rules to sites whitelisted with $document option Closes #1246 --- src/lib/adblock/adblockmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/adblock/adblockmanager.cpp b/src/lib/adblock/adblockmanager.cpp index cba3c5318..39f49c45a 100644 --- a/src/lib/adblock/adblockmanager.cpp +++ b/src/lib/adblock/adblockmanager.cpp @@ -372,7 +372,7 @@ QString AdBlockManager::elementHidingRules() const QString AdBlockManager::elementHidingRulesForDomain(const QUrl &url) const { - if (!isEnabled() || !canRunOnScheme(url.scheme())) { + if (!isEnabled() || !canRunOnScheme(url.scheme()) || !canBeBlocked(url)) { return QString(); }