1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

[AdBlock] Don't add domain css rules to sites whitelisted with $document option

Closes #1246
This commit is contained in:
nowrep 2014-02-25 12:12:27 +01:00
parent 4133106988
commit b6181315f7

View File

@ -372,7 +372,7 @@ QString AdBlockManager::elementHidingRules() const
QString AdBlockManager::elementHidingRulesForDomain(const QUrl &url) const QString AdBlockManager::elementHidingRulesForDomain(const QUrl &url) const
{ {
if (!isEnabled() || !canRunOnScheme(url.scheme())) { if (!isEnabled() || !canRunOnScheme(url.scheme()) || !canBeBlocked(url)) {
return QString(); return QString();
} }