Index: src/plugin/AdblockPlusDomTraverser.cpp |
=================================================================== |
--- a/src/plugin/AdblockPlusDomTraverser.cpp |
+++ b/src/plugin/AdblockPlusDomTraverser.cpp |
@@ -33,7 +33,7 @@ |
// If src should be blocked, set style display:none on iframe |
bool isBlocked = client->ShouldBlock(url, |
- AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_SUBDOCUMENT, m_domain); |
+ AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_SUBDOCUMENT, m_documentUrl); |
if (isBlocked) |
{ |
HideElement(pEl, "iframe", url, true, indent); |
@@ -71,7 +71,7 @@ |
// If src should be blocked, set style display:none on image |
cache->m_isHidden = client->ShouldBlock(src, |
- AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_IMAGE, m_domain); |
+ AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_IMAGE, m_documentUrl); |
if (cache->m_isHidden) |
{ |
HideElement(pEl, "image", src, true, indent); |