From 019f3f1739b4292d4fc0e433cccebb6697319e7b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 15 Jul 2022 12:00:43 -0400 Subject: [PATCH] Properly "bleed" 3p rules onto 3p-script/3p-frame cells Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2171 --- src/js/dynamic-net-filtering.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/dynamic-net-filtering.js b/src/js/dynamic-net-filtering.js index 28d8b5145..1cf630f4e 100644 --- a/src/js/dynamic-net-filtering.js +++ b/src/js/dynamic-net-filtering.js @@ -320,6 +320,11 @@ class DynamicHostRuleFiltering { if ( this.evaluateCellZ(srcHostname, '*', type) !== 0 ) { return this.r; } + if ( type.startsWith('3p-') ) { + if ( this.evaluateCellZ(srcHostname, '*', '3p') !== 0 ) { + return this.r; + } + } } // Any destination, any party, any type