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:
parent
4133106988
commit
b6181315f7
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user