From d027a3f7c4104297cd2bf1c443659ad804c1a145 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 19 Oct 2022 11:37:11 -0400 Subject: [PATCH] Fix improperly detecting ruleset changes re. dynamic URL filtering Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2330 --- src/js/messaging.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index 7ebbdeff7..9de7ba6da 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -1710,12 +1710,13 @@ const getURLFilteringData = function(details) { } if ( response.dirty ) { continue; } puf.evaluateZ(context, url, type); - response.dirty = colorEntry.own !== ( + const pown = ( puf.r !== 0 && puf.context === context && puf.url === url && puf.type === type ); + response.dirty = colorEntry.own !== pown || colorEntry.r !== puf.r; } return response; };